QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#238320#5693. 众数GuanYunchangCompile Error//C++98876b2023-11-04 16:23:562023-11-04 16:23:56

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: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