Problem addition
User bestatchinesechess
Submission Time 2025-02-13 23:08:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp:4:15: error: ‘a’ was not declared in this scope
4 | long long add(a, b) {
| ^
addition.cpp:4:18: error: ‘b’ was not declared in this scope
4 | long long add(a, b) {
| ^
addition.cpp:4:19: error: expression list treated as compound expression in initializer [-fpermissive]
4 | long long add(a, b) {
| ^
addition.cpp: In function ‘int main()’:
addition.cpp:11:2: error: ‘x’ was not declared in this scope
11 | x = add(a, b);
| ^
addition.cpp:11:14: error: ‘add’ cannot be used as a function
11 | x = add(a, b);
| ^