Problem addition
User BlueSpace
Submission Time 2024-07-13 09:27:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp: In function ‘int main()’:
addition.cpp:6:2: error: ‘num’ was not declared in this scope; did you mean ‘enum’?
6 | num x;
| ^~~
| enum
addition.cpp:7:9: error: ‘x’ was not declared in this scope
7 | cin >> x;
| ^
addition.cpp:8:5: error: expected ‘;’ before ‘y’
8 | num y;
| ^~
| ;
addition.cpp:9:9: error: ‘y’ was not declared in this scope; did you mean ‘yn’?
9 | cin >> y;
| ^
| yn
addition.cpp:10:5: error: expected ‘;’ before ‘z’
10 | num z;
| ^~
| ;
addition.cpp:11:5: error: expected ‘;’ before ‘z’
11 | num z = x + y;
| ^~
| ;
addition.cpp:12:10: error: ‘z’ was not declared in this scope
12 | cout << z;
| ^