Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
123634 葛屹阳 找最大的数 C++ Compile Error 0 MS 0 KB 178 2025-07-08 11:02:39

Tests(0/0):


Code:

#include<iostream> using namespace std; int main() { int a[110],max=0; cin>>a[i]; for(int i=1;i<=5;i++) if(a[i]>max) { max=a[i]; } cout<<max; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:9: error: 'i' was not declared in this scope
  cin>>a[i];
         ^