Problem addition
User kailaaaan08
Submission Time 2024-06-24 14:16:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp:2:7: error: expected nested-name-specifier before ‘name’
2 | using name space std;
| ^~~~
addition.cpp: In function ‘int main()’:
addition.cpp:5:6: error: expected ‘;’ before ‘int’
5 | a+=2
| ^
| ;
6 | int b=20, c=30;
| ~~~
addition.cpp:7:12: error: ‘b’ was not declared in this scope
7 | int d = ((b+10)/5)-c;
| ^
addition.cpp:7:21: error: ‘c’ was not declared in this scope
7 | int d = ((b+10)/5)-c;
| ^
addition.cpp:9:10: error: expected ‘;’ before ‘}’ token
9 | return 0
| ^
| ;
10 | }
| ~