QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#19978 | #3098. Ancient Machine | Xiao_Luo_Xuan | Compile Error | / | / | C++20 | 735b | 2022-02-14 14:48:21 | 2023-01-17 10:37:06 |
Judging History
你现在查看的是最新测评结果
- [2023-08-10 23:21:45]
- System Update: QOJ starts to keep a history of the judgings of all the submissions.
- [2023-01-17 10:37:06]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2022-02-14 14:48:21]
- 提交
Anna
#include<bits/stdc++.h>
using namespace std;
const int N=1e5+5;
void Anna(int n,vector <char> S){
bool ans[N];
int st=0;
for(int i=0;i<n;i++){
if(S[i]=='X'){
st=i;
break;
}
}
ans[st]=1;
for(int i=st+1;i<n;i++)
if(S[i]=='Z' && S[i-1]!='Z') ans[i]=1;
for(int i=0;i<n;i++) Send(ans[i]);
}
Bruno
#include<bits/stdc++.h>
using namespace std;
const int N=1e5+5;
void Bruno(int n,int l,vector <int> A){
int st=0;
for(int i=0;i<l;i++){
if(A[i]){
st=i;
break;
}
}
for(int i=0;i<st;i++) Remove(i);
int lst=st+1;
for(int i=st+1;i<l;i++){
if(A[i]){
for(int t=i-1;t>=lst;t--) Remove(t);
Remove(i);
lst=i+1;
}
}
for(int i=lst+1;i<n;i++) Remove(i);
Remove(st);
}
Details
Anna.code: In function ‘void Anna(int, std::vector<char>)’: Anna.code:17:23: error: ‘Send’ was not declared in this scope 17 | for(int i=0;i<n;i++) Send(ans[i]); | ^~~~