Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
153986 张宇泽 19选班长 C++ Compile Error 0 MS 0 KB 324 2026-05-24 11:53:59

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:17: error: expected primary-expression before '<=' token
   for(int i=1;i,<=n;i++){
                 ^
Main.cc:15:7: error: 'ont' was not declared in this scope
   for(ont i=1;i<=n;i++){
       ^
Main.cc:15:15: error: 'i' was not declared in this scope
   for(ont i=1;i<=n;i++){
               ^