Problem addition
User Zhuoxun
Submission Time 2024-02-16 15:16:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp: In function ‘int32_t main()’:
addition.cpp:4:13: error: ‘longlong’ was not declared in this scope
4 | #define int longlong
| ^~~~~~~~
addition.cpp:7:2: note: in expansion of macro ‘int’
7 | int a;
| ^~~
addition.cpp:8:9: error: ‘a’ was not declared in this scope
8 | cin >> a;
| ^
addition.cpp:10:6: error: expected ‘;’ before ‘b’
10 | int b;
| ^
addition.cpp:11:9: error: ‘b’ was not declared in this scope
11 | cin >> b;
| ^
addition.cpp:13:6: error: expected ‘;’ before ‘answer’
13 | int answer;
| ^~~~~~
addition.cpp:14:2: error: ‘answer’ was not declared in this scope
14 | answer = a + b;
| ^~~~~~
addition.cpp:16:20: error: expected ‘;’ before ‘return’
16 | cout << "'result'"
| ^
| ;
17 |
18 | return 0;