Problem 3nplus1
User QPWOEI320
Submission Time 2024-06-24 14:29:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:5:8: error: ‘a’ was not declared in this scope
5 | cin <<a:
| ^
3nplus1.cpp:7:5: error: expected ‘(’ before ‘{’ token
7 | if {a%2=0;
| ^
| (
3nplus1.cpp:9:7: error: ‘else’ without a previous ‘if’
9 | } else {a%2=1;
| ^~~~
3nplus1.cpp:12:18: error: expected ‘;’ before ‘)’ token
12 | for(int i=0; i++)
| ^
| ;
3nplus1.cpp:15:1: error: expected ‘}’ at end of input
15 | }
| ^
3nplus1.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^