QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#502339 | #9156. 百万富翁 | gg_gong# | Compile Error | / | / | C++14 | 2.3kb | 2024-08-03 04:02:16 | 2024-08-03 04:02:16 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘int solve_real(int)’: answer.code:47:47: error: ‘num’ was not declared in this scope; did you mean ‘enum’? 47 | rec[bel]=vecc[num][(int)vecc[bel].size()-1]; | ^~~ | enum answer.code:61:30: error: no matching function for call to ‘std::vector<int>::push_back(std::vector<int>&)’ 61 | vec.push_back(vecc[i]); | ~~~~~~~~~~~~~^~~~~~~~~ In file included from /usr/include/c++/13/vector:66, from /usr/include/c++/13/queue:63, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:157, from answer.code:6: /usr/include/c++/13/bits/stl_vector.h:1278:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; value_type = int]’ 1278 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/include/c++/13/bits/stl_vector.h:1278:35: note: no known conversion for argument 1 from ‘std::vector<int>’ to ‘const std::vector<int>::value_type&’ {aka ‘const int&’} 1278 | push_back(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/13/bits/stl_vector.h:1295:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; value_type = int]’ 1295 | push_back(value_type&& __x) | ^~~~~~~~~ /usr/include/c++/13/bits/stl_vector.h:1295:30: note: no known conversion for argument 1 from ‘std::vector<int>’ to ‘std::vector<int>::value_type&&’ {aka ‘int&&’} 1295 | push_back(value_type&& __x) | ~~~~~~~~~~~~~^~~ answer.code: In function ‘int solve_small(int)’: answer.code:27:1: warning: control reaches end of non-void function [-Wreturn-type] 27 | } | ^