Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
136118 王晏林 19选班长 C++ Compile Error 0 MS 0 KB 316 2025-11-09 16:13:29

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int n,,x,b[100]={},max=0,jg; cin>>n; for(int i=1;i<=3*n;i++){ cin>>x; b[i]++; } for(int i=1;i<=n;i++){ if(max<b[i]){ max=b[i]; jg=i; } } cout<<i; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:4:11: error: expected unqualified-id before ',' token
     int n,,x,b[100]={},max=0,jg;
           ^
Main.cc:16:11: error: 'i' was not declared in this scope
     cout<