Problem sumint
User fanqie
Submission Time 2023-11-16 08:27:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int32_t main()’:
sumint.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
sumint.cpp:6:2: note: in expansion of macro ‘int’
6 | int d;
| ^~~
sumint.cpp:6:6: error: ‘d’ was not declared in this scope
6 | int d;
| ^
sumint.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
sumint.cpp:8:2: note: in expansion of macro ‘int’
8 | int arr[d];
| ^~~
sumint.cpp:8:6: error: ‘arr’ was not declared in this scope
8 | int arr[d];
| ^~~
sumint.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
sumint.cpp:9:2: note: in expansion of macro ‘int’
9 | int s;
| ^~~
sumint.cpp:9:6: error: ‘s’ was not decla