QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#233350 | #7635. Fairy Chess | ucup-team2108 | Compile Error | / | / | C++20 | 320b | 2023-10-31 16:44:42 | 2023-10-31 16:44:43 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:10:33: warning: missing terminating " character 10 | if(s=="BBAARRCCQQMM") cout<<"Bob<<'\n'; | ^ answer.code:10:33: error: missing terminating " character 10 | if(s=="BBAARRCCQQMM") cout<<"Bob<<'\n'; | ^~~~~~~~~~~ answer.code: In function ‘int main()’: answer.code:7:5: error: ‘init’ was not declared in this scope; did you mean ‘int’? 7 | init(); | ^~~~ | int answer.code:8:5: error: ‘mp’ was not declared in this scope 8 | mp['B']=1;mp['R']=2;mp['Q']=3;mp['A']=4;mp['C']=5;mp['M']=6; | ^~ answer.code:9:10: error: ‘s’ was not declared in this scope 9 | cin>>s; | ^ answer.code:10:31: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::ostream’ {aka ‘std::basic_ostream<char>’}) 10 | if(s=="BBAARRCCQQMM") cout<<"Bob<<'\n'; | ~~~~^~ | | | basic_ostream<[...]> 11 | 12 | cout<<(dfs(0,0,0)?"Alice":"Bob")<<'\n'; | ~~~~ | | | basic_ostream<[...]> answer.code:10:31: note: candidate: ‘operator<<(int, int)’ (built-in) 10 | if(s=="BBAARRCCQQMM") cout<<"Bob<<'\n'; | ~~~~^~~~~~~~~~~~~ 11 | | 12 | cout<<(dfs(0,0,0)?"Alice":"Bob")<<'\n'; | ~~~~ answer.code:10:31: note: no known conversion for argument 2 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’ In file included from /usr/include/c++/11/istream:39, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from answer.code:1: /usr/include/c++/11/ostream:108:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]’ 108 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ^~~~~~~~ /usr/include/c++/11/ostream:108:36: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)’ {aka ‘std::basic_ostream<char>& (*)(std::basic_ostream<char>&)’} 108 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/11/ostream:117:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ios_type& (*)(std::basic_ostream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>; std::basic_ostream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]’ 117 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/11/ostream:117:32: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)’ {aka ‘std::basic_ios<char>& (*)(std::basic_ios<char>&)’} 117 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/11/ostream:127:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]’ 127 | operator<<(ios_base& (*__pf) (ios_base&)) | ^~~~~~~~ /usr/include/c++/11/ostream:127:30: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘std::ios_base& (*)(std::ios_base&)’ 127 | operator<<(ios_base& (*__pf) (ios_base&)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/c++/11/ostream:166:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]’ 166 | operator<<(long __n) | ^~~~~~~~ /usr/include/c++/11/ostream:166:23: note: no known conversion for argument 1 from ‘s...