title: unqualified ID error - c++
body: <p>Can anyone point out the error in the code?</p>
  
  <pre><code>73        POINT N;
  74        N.x = (int) 1 - t * p1.X + t * p2.X;
  75        N.y = (int) ((1 - t) * p1.Y + t * p2.Y);
  76
  77        return N;
  </code></pre>
  
  <p>The error I am getting is:</p>
  
  <pre><code>||=== Build: Debug in tester (compiler: GNU GCC Compiler) ===|
  C:\CodeBlocks\openGL workspace\tester\main.cpp||In member function 'POINT drawDeCasteljau::getCasteljauPoint(int, int, double)':|
  C:\CodeBlocks\openGL workspace\tester\main.cpp|74|error: expected unqualified-id before numeric constant|
  C:\CodeBlocks\openGL workspace\tester\main.cpp|74|error: expected ';' before numeric constant|
  C:\CodeBlocks\openGL workspace\tester\main.cpp|75|error: expected unqualified-id before numeric constant|
  C:\CodeBlocks\openGL workspace\tester\main.cpp|75|error: expected ')' before numeric constant|
  ||=== Build failed: 4 error(s), 4 warning(s) (0 minute(s), 0 second(s)) ===|
  </code></pre>
  
  <p>I saw a few posts with same error.. but none I saw helped debugging it. </p>