记录详情

Compile Error

/in/foo.cc:27:2: error: 'vector' does not name a type
  vector<Xinxi> data;
  ^~~~~~
/in/foo.cc: In constructor 'UseVector::UseVector()':
/in/foo.cc:39:4: error: 'data' was not declared in this scope
    data.push_back(p);
    ^~~~
/in/foo.cc: In member function 'void UseVector::sort()':
/in/foo.cc:44:17: error: 'data' was not declared in this scope
   for(int i=0;i<data.size()-1;i++)
                 ^~~~
/in/foo.cc: In member function 'void UseVector::print()':
/in/foo.cc:58:23: error: 'data' was not declared in this scope
   for (int i = 0; i < data.size(); i++)
                       ^~~~

信息

递交者
类型
递交
题目
P1041 OO10-2 基于vector的对象的排序
语言
C++
递交时间
2019-06-27 21:58:43
评测时间
2019-06-27 21:58:43
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes