Problem 3nplus1
User MiloDino67
Submission Time 2026-01-28 22:25:58
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:11:8: error: expected initializer before ‘==’ token
11 | int q == n;
| ^~
3nplus1.cpp:14:13: error: expected ‘;’ before ‘{’ token
14 | n % 2 == 0{
| ^
| ;
3nplus1.cpp:23:1: error: expected ‘}’ at end of input
23 | }
| ^
3nplus1.cpp:13:16: note: to match this ‘{’
13 | while ( n > 1){
| ^
3nplus1.cpp:23:1: error: expected ‘}’ at end of input
23 | }
| ^
3nplus1.cpp:6:12: note: to match this ‘{’
6 | int main (){
| ^