QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#458783#8529. Balance of Permutationucup-team1005Compile Error//C++112.2kb2024-06-29 19:19:022024-06-29 19:19:05

Details

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){
      |           ~~~~~~^