Problem | addition |
---|---|
User | yongteckrice |
Submission Time | 2023-01-28 16:45:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
addition.cpp:6:6: error: ‘cin’ in namespace ‘std’ does not name a type
6 | std::cin >> a;
| ^~~
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:6: error: ‘cin’ in namespace ‘std’ does not name a type
7 | std::cin >> 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:9:6: error: ‘cout’ in namespace ‘std’ does not name a type
9 | std::cout << a+b;
| ^~~~
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
| ^~~~