Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
75982 何思佳 19众数 C++ Compile Error 0 MS 0 KB 274 2024-06-01 11:59:54

Tests(0/0):


Code:

#include <bits/stdc++.h> using namespace std; int main () { int n; cin>>n; int a; int tnog[1001]={0}; for(int i=1;i<=n;i++){ cin>>a; tong[a]++; } int zs=1; for(int j=1;j<=1000;j++){ if(t[j]>t[zs]){ zs=j; } } cout<<zs; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:3: error: 'tong' was not declared in this scope
   tong[a]++;
   ^
Main.cc:14:6: error: 't' was not declared in this scope
   if(t[j]>t[zs]){
      ^
Main.cc:7:6: warning: unused variable 'tnog' [-Wunused-variable]
  int tnog[1001]={0};
      ^