Problem | moneychanger |
---|---|
User | bielychlieb |
Submission Time | 2025-02-28 12:06:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
moneychanger.cpp: In function ‘int main()’:
moneychanger.cpp:30:17: error: no match for ‘operator>=’ (operand types are ‘std::basic_ostream<char>’ and ‘int’)
30 | cout << ans >= 10005 ? -1: ans;
| ~~~~~~~~~~~ ^~ ~~~~~
| | |
| | int
| std::basic_ostream<char>
moneychanger.cpp:30:17: note: candidate: ‘operator>=(int, int)’ <built-in>
30 | cout << ans >= 10005 ? -1: ans;
| ~~~~~~~~~~~~^~~~~~~~
moneychanger.cpp:30:17: note: no known conversion for argument 1 from ‘std::basic_ostream<char>’ to ‘int’
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from moneychanger.cpp:1:
/usr/include/c++/9/bits/regex.h:1070:5: note: candidate: ‘template<class _BiIter> bool std::__cxx11::operator>=(const std::__cxx11::su