Problem party_noi
User Kavinkv
Submission Time 2025-02-20 20:09:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

party_noi.cpp: In function ‘int main()’:
party_noi.cpp:12:6: error: expected ‘(’ before ‘ppl’
12 | if ppl[i}<0; break;
| ^~~
| (
party_noi.cpp: At global scope:
party_noi.cpp:12:12: error: expected unqualified-id before ‘<’ token
12 | if ppl[i}<0; break;
| ^
party_noi.cpp:12:16: error: expected unqualified-id before ‘break’
12 | if ppl[i}<0; break;
| ^~~~~
party_noi.cpp:13:11: error: expected initializer before ‘+=’ token
13 | int sum += ppl[i];
| ^~
party_noi.cpp:14:2: error: ‘cout’ does not name a type
14 | cout<< sum;
| ^~~~
party_noi.cpp:15:2: error: expected unqualified-id before ‘return’
15 | return 0 ;
| ^~~~~~
party_noi.cpp:16:2: error: expected declaration before ‘}’ token
16 | }
| ^