/ Vijos /

记录详情

Compile Error

/in/foo.cc:12:1: error: 'vector' does not name a type
 vector<pair<int, int>> r0; vector<int> rl;
 ^~~~~~
/in/foo.cc:12:28: error: 'vector' does not name a type
 vector<pair<int, int>> r0; vector<int> rl;
                            ^~~~~~
/in/foo.cc:13:1: error: 'vector' does not name a type
 vector<int> s;
 ^~~~~~
/in/foo.cc: In function 'void input()':
/in/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));
   ^
/in/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));
                                   ^~
/in/foo.cc:31:3: error: 'rl' was not declared in this scope
   rl.push_back(st == "odd");
   ^~
/in/foo.cc: In function 'void solve()':
/in/foo.cc:53:7: error: 's' was not declared in this scope
  sort(s.begin(). s.end());
       ^
/in/foo.cc:53:25: error: 'sort' was not declared in this scope
  sort(s.begin(). s.end());
                         ^
/in/foo.cc:55:21: error: 'r0' was not declared in this scope
  for(int i = 0; i < r0.size(); i++) {
                     ^~
/in/foo.cc:57:20: error: 'y' was not declared in this scope
   int c = check(x, y);
                    ^
/in/foo.cc:66:10: error: 'r0' was not declared in this scope
  cout << r0.size() << endl;
          ^~

信息

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