Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
130136 周民苡 找最大的数 C++ Compile Error 0 MS 0 KB 225 2025-09-07 17:18:46

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:17:1: error: expected '}' at end of input
 }
 ^