QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#510205#7516. Robot ExperimentZhaoZiLongCompile Error//C++111.3kb2024-08-08 22:43:202024-08-08 22:43:23

詳細信息

answer.code:12:10: error: use of ‘auto’ in parameter declaration only available with ‘-std=c++14’ or ‘-std=gnu++14’
   12 | bool cmp(auto s1,auto s2)
      |          ^~~~
answer.code:12:18: error: use of ‘auto’ in parameter declaration only available with ‘-std=c++14’ or ‘-std=gnu++14’
   12 | bool cmp(auto s1,auto s2)
      |                  ^~~~
answer.code: In function ‘bool cmp(int, int)’:
answer.code:14:16: error: request for member ‘first’ in ‘s1’, which is of non-class type ‘int’
   14 |         if (s1.first==s2.first)
      |                ^~~~~
answer.code:14:26: error: request for member ‘first’ in ‘s2’, which is of non-class type ‘int’
   14 |         if (s1.first==s2.first)
      |                          ^~~~~
answer.code:16:27: error: request for member ‘second’ in ‘s1’, which is of non-class type ‘int’
   16 |                 return s1.second<s2.second;
      |                           ^~~~~~
answer.code:16:37: error: request for member ‘second’ in ‘s2’, which is of non-class type ‘int’
   16 |                 return s1.second<s2.second;
      |                                     ^~~~~~
answer.code:18:19: error: request for member ‘first’ in ‘s1’, which is of non-class type ‘int’
   18 |         return s1.first<s2.first;
      |                   ^~~~~
answer.code:18:28: error: request for member ‘first’ in ‘s2’, which is of non-class type ‘int’
   18 |         return s1.first<s2.first;
      |                            ^~~~~