QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#137973 | #6342. Security Guard | konstantys# | Compile Error | / | / | C++17 | 344b | 2023-08-10 20:02:30 | 2024-07-04 01:33:18 |
Judging History
你现在查看的是最新测评结果
- [2024-07-04 01:33:18]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2023-08-10 23:21:45]
- System Update: QOJ starts to keep a history of the judgings of all the submissions.
- [2023-08-10 20:02:30]
- 提交
answer
#include<iostream>
#include<cstdlib>
#include<cstdio>
#define lL long long
#include<vector>
using namespace std;
ll n,m,q,a,b,w;
int main(){
ios_base::sync_with_stdio(0);
cin>>n>>m>>q;
for(int i=0;i<n;i++){
cin>>a;
w+=a;
}
for(int i=0;i<m;i++) cin>>a>>b;
cout<<w<<"\n";
return 0;
}
Details
answer.code:7:1: error: ‘ll’ does not name a type; did you mean ‘lL’? 7 | ll n,m,q,a,b,w; | ^~ | lL answer.code: In function ‘int main()’: answer.code:10:10: error: ‘n’ was not declared in this scope 10 | cin>>n>>m>>q; | ^ answer.code:10:13: error: ‘m’ was not declared in this scope; did you mean ‘tm’? 10 | cin>>n>>m>>q; | ^ | tm answer.code:10:16: error: ‘q’ was not declared in this scope 10 | cin>>n>>m>>q; | ^ answer.code:12:14: error: ‘a’ was not declared in this scope 12 | cin>>a; | ^ answer.code:13:9: error: ‘w’ was not declared in this scope 13 | w+=a; | ^ answer.code:15:31: error: ‘a’ was not declared in this scope 15 | for(int i=0;i<m;i++) cin>>a>>b; | ^ answer.code:15:34: error: ‘b’ was not declared in this scope 15 | for(int i=0;i<m;i++) cin>>a>>b; | ^ answer.code:16:11: error: ‘w’ was not declared in this scope 16 | cout<<w<<"\n"; | ^