Problem 3nplus1
User Ryan2012
Submission Time 2026-06-22 16:51:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:6:20: error: expected initializer before ‘!=’ token
6 | while(int count!=1;count <=a;count++)
| ^~
3nplus1.cpp:6:20: error: expected ‘)’ before ‘!=’ token
6 | while(int count!=1;count <=a;count++)
| ~ ^~
| )
3nplus1.cpp:6:20: error: expected primary-expression before ‘!=’ token
6 | while(int count!=1;count <=a;count++)
| ^~
3nplus1.cpp:6:30: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<=’
6 | while(int count!=1;count <=a;count++)
| ~~~~~~^~~
3nplus1.cpp:6:39: error: no post-increment operator for type
6 | while(int count!=1;count <=a;count++)
| ^~
3nplus1.cpp:8:13: error: invalid operands of types