Problem ccs
User Midnight
Submission Time 2026-11-13 15:21:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘int main()’:
ccs.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
ccs.cpp:6:2: note: in expansion of macro ‘int’
6 | int N, Q;
| ^~~
ccs.cpp:6:6: error: ‘N’ was not declared in this scope
6 | int N, Q;
| ^
ccs.cpp:6:9: error: ‘Q’ was not declared in this scope
6 | int N, Q;
| ^
ccs.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
ccs.cpp:9:7: note: in expansion of macro ‘int’
9 | for (int p=1; p<N+1; p++){
| ^~~
ccs.cpp:9:11: error: ‘p’ was not declared in this scope
9 | for (int p=1; p<N+1; p++){
| ^
ccs.cpp:9:21: error: expected ‘)’ before ‘;’ token
9 | for (int p=1; p<N+1; p++){
| ~ ^
|