| Problem | maximum |
|---|---|
| User | Khai |
| Submission Time | 2024-02-04 21:30:51 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
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;
| ^
maximum.cpp:10:15: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
10 | std::cout << max(x, y) <<std::endl;
| ^~~
| std::max
In file included from /usr/include/c++/9/bits/char_traits.h:39,
from /u