Problem addition
User JunWei
Submission Time 2023-08-05 20:35:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp:3:12: error: expected unqualified-id before ‘;’ token
3 | using std::;
| ^
addition.cpp: In function ‘int main()’:
addition.cpp:7:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
7 | cin >> int a >> int 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:7:9: error: expected primary-expression before ‘int’
7 | cin >> int a >> int b
| ^~~