Problem addition
User will
Submission Time 2023-02-14 08:14:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp:4:1: error: expected initializer before ‘using’
4 | using namespace std;
| ^~~~~
addition.cpp: In function ‘int main()’:
addition.cpp:7:2: error: ‘ll’ was not declared in this scope
7 | ll a, b;
| ^~
addition.cpp:8:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
8 | cin>>a>>b;
| ^~~
| std::cin
In file included from addition.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
addition.cpp:8:7: error: ‘a’ was not declared in this scope
8 | cin>>a>>b;
| ^
addition.cpp:8:10: error: ‘b’ was not declared in this scope
8 | cin>>a>>b;
| ^
addition.cpp:9:2: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
9 | cout<<a+b;
| ^~~~