Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
113202 | 李朋秦 | 18成绩查找 | C++ | Compile Error | 0 MS | 0 KB | 499 | 2025-03-15 13:58:55 |
#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 b=0,a,c[100],e; cin>>a; for(int i=0;i<a;i++){ cin>>c[i]; }cin>>e; c[d-1]=e; for(int j=0;j<a;j++){ if(c[j]>100){ c[j-1]=e; } cout<<c[j]<<" "; } return 0; }
Main.cc: In function 'int main()': Main.cc:13:7: error: 'd' was not declared in this scope c[d-1]=e; ^ Main.cc:8:9: warning: unused variable 'b' [-Wunused-variable] int b=0,a,c[100],e; ^