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

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:12:7: error: expected ';' before 'cout'
       cout<