Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
82048 杜奕辰 统计字符数量 C++ Compile Error 0 MS 0 KB 272 2024-07-12 16:55:15

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; char n[1000000]; int n2[150]; int main(){ cin>>n; int n3=strlen(n); for(int i=0;i<n3;i++){ sn[s[i]]++; } int max=0,k; for(int j='a';j<='z';j++){ if(max<n2[j]); k=j; } cout<<char(j); return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:3: error: 'sn' was not declared in this scope
   sn[s[i]]++;
   ^
Main.cc:9:6: error: 's' was not declared in this scope
   sn[s[i]]++;
      ^
Main.cc:16:13: error: 'j' was not declared in this scope
  cout<