Problem area
User Xiangyu
Submission Time 2026-02-07 16:51:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

area.cpp: In function ‘int main()’:
area.cpp:6:9: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | cin >> x >> y;
| ^~~
| 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:6:16: error: ‘x’ was not declared in this scope
6 | cin >> x >> y;
| ^
area.cpp:6:21: error: ‘y’ was not declared in this scope
6 | cin >> x >> y;
| ^
area.cpp:9:5: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
9 | cout << ans;
| ^~~~
| std::cout
In file included from area.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cou