Problem | sightseeing |
---|---|
User | PoTheSloth |
Submission Time | 2023-11-29 18:57:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sightseeing.cpp: In function ‘int32_t main()’:
sightseeing.cpp:41:50: error: no match for ‘operator<’ (operand types are ‘std::basic_ostream<char>’ and ‘char’)
41 | for(int i=0; i<q; ++i){int x;cin>>x;cout<<ans[x]<'\n';}
| ~~~~~~~~~~~~^~~~~
| | |
| | char
| std::basic_ostream<char>
sightseeing.cpp:41:50: note: candidate: ‘operator<(int, int)’ <built-in>
41 | for(int i=0; i<q; ++i){int x;cin>>x;cout<<ans[x]<'\n';}
| ~~~~~~~~~~~~^~~~~
sightseeing.cpp:41:50: 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+