QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#574232 | #9320. Find the Easiest Problem | amumu123 | Compile Error | / | / | C++17 | 810b | 2024-09-18 21:09:12 | 2024-09-18 21:09:13 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=1005;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
ll t;
cin>>t;
while(t--){
int n;
cin>>n;
set<string>mp;
map<char,int>mmp;
int x=0;
char y=65;
while(n--){
string a,c,d;
char b;
cin>>a>>b>>c;
if(c[0]=='a'){
d=a+b+c;//就是判断是否重复
auto it=mp.find(d);
if(it==mp.end()){
mm[b]++;
}
}
}
for(auto [key,val]:mmp){
if(val>x){
y=key;
}
}
cout<<y<<"\n";
}
return 0;
}
详细
answer.code: In function ‘int main()’: answer.code:26:17: error: ‘mm’ was not declared in this scope; did you mean ‘mmp’? 26 | mm[b]++; | ^~ | mmp