/ Vijos /

记录详情

Compile Error

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)

信息

递交者
类型
自测
题目
P1112 小胖的奇偶
语言
C++
递交时间
2020-02-16 14:57:48
评测时间
2020-02-16 14:57:48
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes