Problem | smurf |
---|---|
User | NsNassCode |
Submission Time | 2024-06-20 21:12:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
smurf.cpp: In function ‘int main()’:
smurf.cpp:16:31: error: no match for ‘operator==’ (operand types are ‘std::basic_ostream<char>’ and ‘int’)
16 | cout << j % 2 == 0 ? " " : temp << " ";
| ~~~~~~~~~~~~~ ^~ ~
| | |
| | int
| std::basic_ostream<char>
smurf.cpp:16:31: note: candidate: ‘operator==(int, int)’ <built-in>
16 | cout << j % 2 == 0 ? " " : temp << " ";
| ~~~~~~~~~~~~~~^~~~
smurf.cpp:16:31: note: no known conversion for argument 1 from ‘std::basic_ostream<char>’ to ‘int’
In file included from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/ios:38,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from smurf.cp