Problem retrenchment
User yq
Submission Time 2026-06-25 20:13:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

retrenchment.cpp: In function ‘int main()’:
retrenchment.cpp:7:15: error: expected ‘;’ before ‘)’ token
7 | for(N != 0) {
| ^
| ;
retrenchment.cpp:11:2: error: expected primary-expression before ‘}’ token
11 | }
| ^
retrenchment.cpp:10:4: error: expected ‘;’ before ‘}’ token
10 | }
| ^
| ;
11 | }
| ~
retrenchment.cpp:11:2: error: expected primary-expression before ‘}’ token
11 | }
| ^
retrenchment.cpp:10:4: error: expected ‘)’ before ‘}’ token
10 | }
| ^
| )
11 | }
| ~
retrenchment.cpp:7:8: note: to match this ‘(’
7 | for(N != 0) {
| ^
retrenchment.cpp:11:2: error: expected primary-expression before ‘}’ token
11 | }
| ^
retrenchment.cpp: At global scope:
retrenchment.cpp:12:5: error: ‘cout’ does not name a type
12 |