| Problem | badcontest |
|---|---|
| User | emyz |
| Submission Time | 2025-12-29 13:03:23 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
badcontest.cpp: In function ‘int main()’:
badcontest.cpp:9:38: error: ‘a’ was not declared in this scope
9 | for (int i=0; i<n; ++i) int a; cin>>a; sum+=a;
| ^
badcontest.cpp:16:3: error: expected ‘}’ before ‘else’
16 | else cout<<"NO" return 0;
| ^~~~
badcontest.cpp:14:2: note: to match this ‘{’
14 | {
| ^
badcontest.cpp:16:18: error: expected ‘;’ before ‘return’
16 | else cout<<"NO" return 0;
| ^~~~~~~
| ;
badcontest.cpp: At global scope:
badcontest.cpp:18:2: error: expected unqualified-id before ‘else’
18 | else
| ^~~~
badcontest.cpp:23:1: error: expected declaration before ‘}’ token
23 | }
| ^