Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
113205 李明秦 18成绩查找 C++ Compile Error 0 MS 0 KB 480 2025-03-15 14:08:48

Tests(0/0):


Code:

#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 x,n,a[1000],b,c; cin>>x; for(int i=0;i<x;i++){ cin>>a[i]; } cin>>b; for(int i=0;i<x;i++) if(a[i]>100){ a[i]=b; } cout<<a[i]<<" "; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:18:17: error: 'i' was not declared in this scope
         cout<