Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
106431 | 顾梦琪 | 找最大的数 | C++ | Compile Error | 0 MS | 0 KB | 214 | 2025-01-16 11:32:44 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[10]; for(int i=0;i<10;i++){ cin>>a[i]; } int x=0; for(int i=1;i<10;i++){ if(a[i]>a[x]){ x=i } } cout<<x+1; return 0; }
Main.cc: In function 'int main()': Main.cc:12:3: error: expected ';' before '}' token } ^