Problem maximum
User Froakyu
Submission Time 2026-06-30 13:07:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

maximum.cpp: In function ‘int main()’:
maximum.cpp:7:12: error: no match for ‘operator>’ (operand types are ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} and ‘long long int’)
7 | if(cin >> a>b){cout << a};
| ~~~~~~~~^~
| | |
| | long long int
| std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
maximum.cpp:7:12: note: candidate: ‘operator>(int, long long int)’ <built-in>
7 | if(cin >> a>b){cout << a};
| ~~~~~~~~^~
maximum.cpp:7:12: note: no known conversion for argument 1 from ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<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,