Problem | area |
---|---|
User | MS |
Submission Time | 2023-08-29 22:39:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
area.cpp: In function ‘int main()’:
area.cpp:5:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
5 | cin >> n;
| ^~~
| std::cin
In file included from area.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
area.cpp:10:5: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
10 | cout << sum << endl;
| ^~~~
| std::cout
In file included from area.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
area.cpp:10:20: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’?
10 | cout << sum << endl;
| ^~~~
| std::endl<