QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#238347#5693. 众数MaMengQiCompile Error//C++98892b2023-11-04 16:28:402023-11-04 16:28:41

详细

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
      |       ^~~~~