| Problem | choochoo |
|---|---|
| User | supercel980 |
| Submission Time | 2026-02-18 18:48:42 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
choochoo.cpp: In function ‘int main()’:
choochoo.cpp:8:23: error: no ‘operator++(int)’ declared for postfix ‘++’ [-fpermissive]
8 | if (x == "chugga") x++
| ~^~
choochoo.cpp:10:12: error: no match for ‘operator%’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘int’)
10 | cout << (x%2==0)?"CHOO choo":"choo CHOO";
| ~^~
| | |
| | int
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/9/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from choochoo.cpp:1:
/usr/include/c++/9/bits/valarray_after.h:409:5: note: candidate: ‘template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__modulus, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__modulus, typename _