Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118845 | 李俊博 | 07交换数据II | C++ | Compile Error | 0 MS | 0 KB | 311 | 2025-05-10 15:29:44 |
#include<iostream> using namespace std; int main() { /** char a; cin>>a; if(a =='Y'){ cout<<'A'; }else { if(a =='Z'){ cout<<'B'; }else{ cout<<char(a+2); } } **/ int a,b; cin>>a>>b; if(a>b) { cout<<b>>" "a; } else { cout<<a>>" "b; } return 0; }
Main.cc: In function 'int main()': Main.cc:22:12: error: unable to find string literal operator 'operator""a' with 'const char [2]', 'long unsigned int' arguments cout<>" "a; ^ Main.cc:26:12: error: unable to find string literal operator 'operator""b' with 'const char [2]', 'long unsigned int' arguments cout<>" "b; ^