QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#458783#8529. Balance of Permutationucup-team1005Compile Error//C++112.2kb2024-06-29 19:19:022024-06-29 19:19:05

详细

answer.code:13:11: error: use of ‘auto’ in parameter declaration only available with ‘-std=c++14’ or ‘-std=gnu++14’
   13 | void getz(auto &x){
      |           ^~~~
answer.code: In function ‘int main()’:
answer.code:59:28: error: cannot bind non-const lvalue reference of type ‘int&’ to a value of type ‘IT’ {aka ‘__int128’}
   59 |     getz(n); getz(B); getz(K);
      |                            ^
answer.code:13:17: note:   initializing argument 1 of ‘void getz(int&)’
   13 | void getz(auto &x){
      |           ~~~~~~^