foo.cc:12:1: error: 'vector' does not name a type
vector<pair<int, int>> r0; vector<int> rl;
^~~~~~
foo.cc:12:28: error: 'vector' does not name a type
vector<pair<int, int>> r0; vector<int> rl;
^~~~~~
foo.cc:13:1: error: 'vector' does not name a type
vector<int> s;
^~~~~~
foo.cc: In function 'void input()':
foo.cc:30:3: error: 's' was not declared in this scope
s.push_back(x); s.push_back(y); r0.push_back(make_pair(x, y));
^
foo.cc:30:35: error: 'r0' was not declared in this scope
s.push_back(x); s.push_back(y); r0.push_back(make_pair(x, y));
^~
foo.cc:31:3: error: 'rl' was not declared in this scope
rl.push_back(st == "odd");
^~
foo.cc: In function 'void solve()':
foo.cc:53:7: error: 's' was not declared in this scope
sort(s.begin(). s.end());
^
foo.cc:53:25: error: 'sort' was not declared in this scope
sort(s.begin(). s.end());
^
foo.cc:55:21: error: 'r0' was not declared in this scope
for(int i = 0; i < r0.size(); i++) {
^~
foo.cc:57:20: error: 'y' was not declared in this scope
int c = check(x, y);
^
foo.cc:66:10: error: 'r0' was not declared in this scope
cout << r0.size() << endl;
^~
自豪的采用jd5进行评测(github.com/masnn/jd5)