QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#510205 | #7516. Robot Experiment | ZhaoZiLong | Compile Error | / | / | C++11 | 1.3kb | 2024-08-08 22:43:20 | 2024-08-08 22:43:23 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
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; | ^~~~~