Problem sumint
User PrunJuice
Submission Time 2026-04-23 21:17:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
sumint.cpp:5:2: note: in expansion of macro ‘int’
5 | int n;
| ^~~
sumint.cpp:5:6: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
5 | int n;
| ^
| yn
sumint.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
sumint.cpp:7:2: note: in expansion of macro ‘int’
7 | int sum = 0;
| ^~~
sumint.cpp:7:6: error: ‘sum’ was not declared in this scope
7 | int sum = 0;
| ^~~
sumint.cpp:3:18: error: template argument 1 is invalid
3 | #define int long long;
| ^~~~
sumint.cpp:8:10: note: in expansion of macro ‘int’
8 | vector <int> v (n);
| ^~~<