QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#238320#5693. 众数GuanYunchangCompile Error//C++98876b2023-11-04 16:23:562023-11-04 16:23:56

詳細信息

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:49:34: error: ‘begin’ was not declared in this scope
   49 |                         ve.erase(begin() + dle[i] - t);
      |                                  ^~~~~
answer.code:49:34: note: ‘std::begin’ is only available from C++11 onwards