Problem | addition |
---|---|
User | Ningja |
Submission Time | 2023-11-08 09:56:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
addition.cpp:4:5: error: cannot declare ‘::main’ to be a global variable
4 | int main {
| ^~~~
addition.cpp:5:2: error: expected primary-expression before ‘long’
5 | long long a,b;
| ^~~~
addition.cpp:5:2: error: expected ‘}’ before ‘long’
addition.cpp:4:10: note: to match this ‘{’
4 | int main {
| ^
addition.cpp:6:7: error: ‘cin’ in namespace ‘std’ does not name a type
6 | std::cin >> a >> b;
| ^~~
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:16: error: ‘a’ was not declared in this scope
7 | long long c = a+b;
| ^
addition.cpp:7:18: error: ‘b’ was not declared in this scope
7 | long long c = a+b;
| ^
addition.cpp:8:7: error: ‘cout’