Problem | potatosalad |
---|---|
User | eliasxyz |
Submission Time | 2025-05-24 23:27:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:8:2: error: expected initializer before ‘for’
8 | for(i=0;i<N;i++){
| ^~~
potatosalad.cpp:8:10: error: ‘i’ was not declared in this scope
8 | for(i=0;i<N;i++){
| ^
potatosalad.cpp:19:2: error: expected primary-expression before ‘}’ token
19 | } else {
| ^
potatosalad.cpp:18:11: error: expected ‘)’ before ‘}’ token
18 | cout<<t;
| ^
| )
19 | } else {
| ~
potatosalad.cpp:15:6: note: to match this ‘(’
15 | for(i=0,i<N,i++){
| ^
potatosalad.cpp:19:2: error: expected primary-expression before ‘}’ token
19 | } else {
| ^
potatosalad.cpp:20:8: error: ‘A’ was not declared in this scope
20 | sort(A, A+N);
| ^
potatosalad.cpp:20:3: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
20