Problem eight
User yanwen
Submission Time 2025-09-01 17:24:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eight.cpp: In function ‘int main()’:
eight.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
eight.cpp:6:2: note: in expansion of macro ‘int’
6 | int A, N, x = 0;
| ^~~
eight.cpp:6:6: error: ‘A’ was not declared in this scope
6 | int A, N, x = 0;
| ^
eight.cpp:6:9: error: ‘N’ was not declared in this scope
6 | int A, N, x = 0;
| ^
eight.cpp:6:12: error: ‘x’ was not declared in this scope
6 | int A, N, x = 0;
| ^
eight.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
eight.cpp:8:7: note: in expansion of macro ‘int’
8 | for (int i = 0; i < N; i++) {
| ^~~
eight.cpp:8:11: error: ‘i’ was not declared in this scope
8 | for (int i = 0; i < N; i++) {
|