QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#807749 | #8813. Records in Chichén Itzá | Sharky# | Compile Error | / | / | C++14 | 373b | 2024-12-10 11:05:56 | 2024-12-10 11:06:27 |
Judging History
This is the latest submission verdict.
- [2024-12-10 11:06:27]
- Judged
- Verdict: Compile Error
- Time: 0ms
- Memory: 0kb
- [2024-12-10 11:05:56]
- Submitted
answer
#include <bits/stdc++.h>
using namespace std;
void solve() {
int n;
cin>>n;
set<ll>st;
for(int i=1;i<=n;i++){
ll k;
cin>>k;
st.insert(k);
}
if(st.size()>=3) cout<<"Yes\n";
else cout<<"No\n";
}
int main() {
ios::sync_with_stdio(0); cin.tie(0);
int t;
cin >> t;
while (t--) solve();
}
詳細信息
answer.code: In function ‘void solve()’: answer.code:7:9: error: ‘ll’ was not declared in this scope 7 | set<ll>st; | ^~ answer.code:7:11: error: template argument 1 is invalid 7 | set<ll>st; | ^ answer.code:7:11: error: template argument 2 is invalid answer.code:7:11: error: template argument 3 is invalid answer.code:9:11: error: expected ‘;’ before ‘k’ 9 | ll k; | ^~ | ; answer.code:10:14: error: ‘k’ was not declared in this scope 10 | cin>>k; | ^ answer.code:11:12: error: request for member ‘insert’ in ‘st’, which is of non-class type ‘int’ 11 | st.insert(k); | ^~~~~~ answer.code:13:11: error: request for member ‘size’ in ‘st’, which is of non-class type ‘int’ 13 | if(st.size()>=3) cout<<"Yes\n"; | ^~~~