Problem addition
User Sumnumnumnumnum
Submission Time 2025-07-31 16:02:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp: In function ‘int main()’:
addition.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
addition.cpp:5:2: note: in expansion of macro ‘int’
5 | int x, y;
| ^~~
addition.cpp:5:6: error: ‘x’ was not declared in this scope
5 | int x, y;
| ^
addition.cpp:5:9: error: ‘y’ was not declared in this scope
5 | int x, y;
| ^
addition.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
addition.cpp:7:2: note: in expansion of macro ‘int’
7 | int sum = x + y;
| ^~~
addition.cpp:7:6: error: ‘sum’ was not declared in this scope
7 | int sum = x + y;
| ^~~