| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 152008 | 鸡哥 | 04四位数移位 | C++ | Compile Error | 0 MS | 0 KB | 122 | 2026-04-19 14:31:12 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; scanf(%3d%1d,&a&b); cout<<b<<a; return 0; }
Main.cc: In function 'int main()':
Main.cc:5:8: error: expected primary-expression before '%' token
scanf(%3d%1d,&a&b);
^
Main.cc:5:9: error: unable to find numeric literal operator 'operator""d'
scanf(%3d%1d,&a&b);
^
Main.cc:5:9: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
Main.cc:5:12: error: unable to find numeric literal operator 'operator""d'
scanf(%3d%1d,&a&b);
^
Main.cc:5:12: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
Main.cc:5:18: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
scanf(%3d%1d,&a&b);
^