Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
130145 王晏林 找最大的数 C++ Compile Error 0 MS 0 KB 229 2025-09-07 17:25:43

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a[10],sum=0,w; for(int i=0;i<10;i++){ cin>>a[i]; } for(int i=0;i<10;i++){ if(max<a[i]){ max=a[i]; m=i; }} cout<<w+1; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:13: error: the value of 'a' is not usable in a constant expression
   if(max