/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void test129()':
/in/foo.cc:20:9: error: 'shui' was not declared in this scope
  vector<shui>v1;
         ^~~~
/in/foo.cc:20:13: error: template argument 1 is invalid
  vector<shui>v1;
             ^
/in/foo.cc:20:13: error: template argument 2 is invalid
/in/foo.cc:27:8: error: expected ';' before 'c'
   shui c(a, b);
        ^
/in/foo.cc:28:6: error: request for member 'push_back' in 'v1', which is of non-class type 'int'
   v1.push_back(c);
      ^~~~~~~~~
/in/foo.cc:28:16: error: 'c' was not declared in this scope
   v1.push_back(c);
                ^
/in/foo.cc:30:10: error: request for member 'begin' in 'v1', which is of non-class type 'int'
  sort(v1.begin(), v1.end(), shui_pai());
          ^~~~~
/in/foo.cc:30:22: error: request for member 'end' in 'v1', which is of non-class type 'int'
  sort(v1.begin(), v1.end(), shui_pai());
                      ^~~
/in/foo.cc:30:38: error: 'shui_pai' was not declared in this scope
  sort(v1.begin(), v1.end(), shui_pai());
                                      ^
/in/foo.cc:31:25: error: request for member 'size' in 'v1', which is of non-class type 'int'
  for (int i = 0; i < v1.size(); i++)
                         ^~~~
/in/foo.cc:33:15: error: invalid types 'int[int]' for array subscript
   cout << v1[i].m_a << endl;
               ^

信息

递交者
类型
递交
题目
P1257 水王争霸
语言
C++
递交时间
2022-01-16 15:50:09
评测时间
2022-01-16 15:50:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes