QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#369931#4071. Galactic Collegiate Programming ContestZhaoZiLongCompile Error//C++98726b2024-03-28 19:38:582024-03-28 19:38:58

詳細信息

answer.code: In function ‘int main()’:
answer.code:13:13: error: in C++98 ‘tmp1’ must be initialized by constructor, not by ‘{...}’
   13 |     pii tmp,tmp1 = {arr[1],p1};
      |             ^~~~
answer.code:20:24: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   20 |         tmp = {arr[t],p};tmp1 = {arr[1],p1};
      |                        ^
answer.code:20:24: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
answer.code:20:43: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   20 |         tmp = {arr[t],p};tmp1 = {arr[1],p1};
      |                                           ^
answer.code:20:43: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]