QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#502303#9156. 百万富翁gg_gong#Compile Error//C++141.4kb2024-08-03 03:22:332024-08-03 03:22:33

详细

answer.code: In function ‘int solve_real(int)’:
answer.code:42:29: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; size_type = long unsigned int]’ (did you forget the ‘()’ ?)
   42 |                 if((int)vec.size%2==1)
      |                         ~~~~^~~~
      |                                 ()
answer.code: In function ‘int solve_small(int)’:
answer.code:27:1: warning: control reaches end of non-void function [-Wreturn-type]
   27 | }
      | ^