Problem | addition |
---|---|
User | spidermancoolboy |
Submission Time | 2024-01-27 23:24:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
addition.cpp: In function ‘int main()’:
addition.cpp:3:12: error: ‘num1’ was not declared in this scope
3 | std::cin<<num1;
| ^~~~
addition.cpp:4:12: error: ‘num2’ was not declared in this scope
4 | std::cin<<num2;
| ^~~~
addition.cpp:5:2: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
5 | cout>>num1+num2;
| ^~~~
| 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
| ^~~~