Problem addition
User Khai
Submission Time 2024-02-02 14:10:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp:2:20: error: expected ‘;’ before ‘int’
2 | using namespace std
| ^
| ;
3 | int main{
| ~~~
addition.cpp:3:5: error: cannot declare ‘::main’ to be a global variable
3 | int main{
| ^~~~
addition.cpp:4:14: error: ‘a’ was not declared in this scope
4 | std::cin << a << b;
| ^
addition.cpp:4:19: error: ‘b’ was not declared in this scope
4 | std::cin << a << b;
| ^
addition.cpp:4:20: error: expected ‘}’ before ‘;’ token
4 | std::cin << a << b;
| ^
addition.cpp:3:9: note: to match this ‘{’
3 | int main{
| ^
addition.cpp:5:7: error: ‘cout’ in namespace ‘std’ does not name a type
5 | std::cout >> a + b;
| ^~~~
In file included from addition.cpp:1:
/usr/incl