Problem sumint
User Schoolpurposes
Submission Time 2025-02-11 20:29:02
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:7:2: note: in expansion of macro ‘int’
7 | int x;
| ^~~
sumint.cpp:7:6: error: ‘x’ was not declared in this scope
7 | int x;
| ^
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 result;
| ^~~
sumint.cpp:8:6: error: ‘result’ was not declared