Problem | addition |
---|---|
User | SirCTan |
Submission Time | 2024-12-16 19:56:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
addition.cpp: In function ‘int main()’:
addition.cpp:4:15: error: found ‘:’ in nested-name-specifier, expected ‘::’
4 | long long a, b:
| ^
| ::
addition.cpp:4:14: error: ‘b’ has not been declared
4 | long long a, b:
| ^
addition.cpp:5:5: error: qualified-id in declaration before ‘>>’ token
5 | cin >> a >> b;
| ^~
addition.cpp:6:1: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
6 | cout << a + b << end1;
| ^~~~
| std::cout
In file included from addition.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
addition.cpp:6:13: error: ‘b’ was not declared in this scope
6 | cout << a + b << end1;
| ^
addition.cpp:6:18: error: ‘end1’