| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 148148 | 徐启航 | 输出满足条件的成绩 | C++ | Compile Error | 0 MS | 0 KB | 463 | 2026-02-09 19:09:49 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<ctime> #include<cstdlib> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a[150],b[150] for(int i=1;i<=50;i++){ cin>>a[i]>>b[i]; if(b[i]>=80){ cout<<a[i]<<" "<<b[i]<<endl; } } return 0; }
Main.cc: In function 'int main()':
Main.cc:10:5: error: expected initializer before 'for'
for(int i=1;i<=50;i++){
^
Main.cc:10:17: error: 'i' was not declared in this scope
for(int i=1;i<=50;i++){
^
Main.cc:9:9: warning: unused variable 'a' [-Wunused-variable]
int a[150],b[150]
^