Problem 3nplus1
User MiloDino67
Submission Time 2026-01-28 22:26:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:8:8: error: expected initializer before ‘==’ token
8 | int q == n;
| ^~
3nplus1.cpp:11:13: error: expected ‘;’ before ‘{’ token
11 | n % 2 == 0{
| ^
| ;
3nplus1.cpp:20:1: error: expected ‘}’ at end of input
20 | }
| ^
3nplus1.cpp:10:16: note: to match this ‘{’
10 | while ( n > 1){
| ^
3nplus1.cpp:20:1: error: expected ‘}’ at end of input
20 | }
| ^
3nplus1.cpp:6:12: note: to match this ‘{’
6 | int main (){
| ^