Problem solonim
User ybc
Submission Time 2023-11-10 09:43:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

solonim.cpp:2:2: error: ‘cin’ does not name a type
2 | cin >> N;
| ^~~
solonim.cpp:3:15: error: array bound is not an integer constant before ‘]’ token
3 | long long p[N];
| ^
solonim.cpp:5:2: error: expected unqualified-id before ‘for’
5 | for (int i = 0; i<N;i+=1){
| ^~~
solonim.cpp:5:18: error: ‘i’ does not name a type
5 | for (int i = 0; i<N;i+=1){
| ^
solonim.cpp:5:22: error: ‘i’ does not name a type
5 | for (int i = 0; i<N;i+=1){
| ^
solonim.cpp:10:2: error: expected unqualified-id before ‘if’
10 | if (sum%2 == 0){
| ^~
solonim.cpp:13:2: error: expected unqualified-id before ‘else’
13 | else {
| ^~~~
solonim.cpp:16:1: error: expected declaration before ‘}’ token
16 | }
| ^