| Problem | maximum |
|---|---|
| User | w1gglya3hh |
| Submission Time | 2026-03-18 10:28:10 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
maximum.cpp: In function ‘int main()’:
maximum.cpp:9:17: error: no match for ‘operator>’ (operand types are ‘std::basic_ostream<char>’ and ‘int’)
9 | std::cout << a > b ? a : b << std::endl;
| ~~~~~~~~~~~~~~ ^ ~
| | |
| | int
| std::basic_ostream<char>
maximum.cpp:9:17: note: candidate: ‘operator>(int, int)’ <built-in>
9 | std::cout << a > b ? a : b << std::endl;
| ~~~~~~~~~~~~~~~^~~
maximum.cpp:9:17: note: no known conversion for argument 1 from ‘std::basic_ostream<char>’ to ‘int’
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from maximum.cpp