Problem addition
User zien
Submission Time 2026-06-24 16:23:21
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:6:5: note: in expansion of macro ‘int’
6 | int a, b;
| ^~~
addition.cpp:6:9: error: ‘a’ was not declared in this scope
6 | int a, b;
| ^
addition.cpp:6:12: error: ‘b’ was not declared in this scope
6 | int a, b;
| ^
addition.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
addition.cpp:8:5: note: in expansion of macro ‘int’
8 | int sum = a+b;
| ^~~
addition.cpp:8:9: error: ‘sum’ was not declared in this scope
8 | int sum = a+b;
| ^~~