Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
97902 | 唐俊逸 | 04四位数移位 | C++ | Compile Error | 0 MS | 0 KB | 327 | 2024-11-16 18:55:53 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a b; scanf("%3d%1d",&a,&b); cout<<a<<b; return 0; }
Main.cc: In function 'int main()': Main.cc:8:11: error: expected initializer before 'b' int a b; ^ Main.cc:9:21: error: 'a' was not declared in this scope scanf("%3d%1d",&a,&b); ^ Main.cc:9:24: error: 'b' was not declared in this scope scanf("%3d%1d",&a,&b); ^