Problem maximum
User Khai
Submission Time 2024-02-04 21:31:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

maximum.cpp:2:6: error: ‘cin’ in namespace ‘std’ does not name a type
2 | std::cin >> x >> y;
| ^~~
In file included from maximum.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
maximum.cpp: In function ‘int main()’:
maximum.cpp:10:19: error: ‘x’ was not declared in this scope
10 | std::cout << max(x, y) <<std::endl;
| ^
maximum.cpp:10:22: error: ‘y’ was not declared in this scope
10 | std::cout << max(x, y) <<std::endl;
| ^