QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#238347 | #5693. 众数 | MaMengQi | Compile Error | / | / | C++98 | 892b | 2023-11-04 16:28:40 | 2023-11-04 16:28:41 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:19:38: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ 19 | ve.push_back({i,a[i] - a[n]}); | ^ answer.code:19:37: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ 19 | ve.push_back({i,a[i] - a[n]}); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ answer.code:52:21: error: invalid use of non-static member function ‘void std::vector<_Tp, _Alloc>::clear() [with _Tp = int; _Alloc = std::allocator<int>]’ 52 | dle.clear; | ~~~~^~~~~ In file included from /usr/include/c++/11/vector:67, from answer.code:2: /usr/include/c++/11/bits/stl_vector.h:1498:7: note: declared here 1498 | clear() _GLIBCXX_NOEXCEPT | ^~~~~