#include <bits/stdc++.h>
using namespace std;
#include "Alice.h"
vector<pair<int, int>> Alice(){
long long ans;
ans=setN(4999);
vector <pair<int,int>> p;
ans--;
for (int i=1; i<=2499; i++){
p.push_back({1,ans/5000});
}
for (int i=2500; i<=4998; i++){
p.push_back({2,ans%5000});
}
return p;
}
#include <bits/stdc++.h>
using namespace std;
#include "Bob.h"
long long Bob(vector<pair<int, int>> V){
ll n1=-1,n2=-1,warn=0;
for (int i=0; i<V.size(); i++){
if (V[i].first==1 && V[i].second==2){warn=1;}
else if (V[i].first==2){n2==V[i].second;if (warn==1){warn=0;n1=2;}}
else if (V[i].first==0){
if (V[i].second==1){n1=0;if (warn==1){warn=0;n2=2;}}
else if (V[i].second==2){n1=0;if (warn==1){warn=0;n1=2;}}
}
else{
n1=V[i].second;
if (warn==1){
warn=0;
n2=2;
}
}
}
return n1*5000+n2+1;
}
Compilation message (stderr)
# 2번째 컴파일 단계
Bob.cpp: In function 'long long int Bob(std::vector<std::pair<int, int> >)':
Bob.cpp:9:5: error: 'll' was not declared in this scope
9 | ll n1=-1,n2=-1,warn=0;
| ^~
Bob.cpp:12:46: error: 'warn' was not declared in this scope
12 | if (V[i].first==1 && V[i].second==2){warn=1;}
| ^~~~
Bob.cpp:13:33: error: 'n2' was not declared in this scope
13 | else if (V[i].first==2){n2==V[i].second;if (warn==1){warn=0;n1=2;}}
| ^~
Bob.cpp:13:53: error: 'warn' was not declared in this scope
13 | else if (V[i].first==2){n2==V[i].second;if (warn==1){warn=0;n1=2;}}
| ^~~~
Bob.cpp:13:69: error: 'n1' was not declared in this scope; did you mean 'y1'?
13 | else if (V[i].first==2){n2==V[i].second;if (warn==1){warn=0;n1=2;}}
| ^~
| y1
Bob.cpp:15:33: error: 'n1' was not declared in this scope; did you mean 'y1'?
15 | if (V[i].second==1){n1=0;if (warn==1){warn=0;n2=2;}}
| ^~
| y1
Bob.cpp:15:42: error: 'warn' was not declared in this scope
15 | if (V[i].second==1){n1=0;if (warn==1){warn=0;n2=2;}}
| ^~~~
Bob.cpp:15:58: error: 'n2' was not declared in this scope
15 | if (V[i].second==1){n1=0;if (warn==1){warn=0;n2=2;}}
| ^~
Bob.cpp:16:38: error: 'n1' was not declared in this scope; did you mean 'y1'?
16 | else if (V[i].second==2){n1=0;if (warn==1){warn=0;n1=2;}}
| ^~
| y1
Bob.cpp:16:47: error: 'warn' was not declared in this scope
16 | else if (V[i].second==2){n1=0;if (warn==1){warn=0;n1=2;}}
| ^~~~
Bob.cpp:19:13: error: 'n1' was not declared in this scope; did you mean 'y1'?
19 | n1=V[i].second;
| ^~
| y1
Bob.cpp:20:17: error: 'warn' was not declared in this scope
20 | if (warn==1){
| ^~~~
Bob.cpp:22:17: error: 'n2' was not declared in this scope
22 | n2=2;
| ^~
Bob.cpp:26:12: error: 'n1' was not declared in this scope; did you mean 'y1'?
26 | return n1*5000+n2+1;
| ^~
| y1
Bob.cpp:26:20: error: 'n2' was not declared in this scope
26 | return n1*5000+n2+1;
| ^~