Borderou de evaluare (job #3161766)

Utilizator divadddDavid Curca divaddd Data 27 octombrie 2023 22:16:33
Problema Euclid Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void solve()': main.cpp:47:51: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'long long int' 47 | gcdSelf(rmq[jump1][jump2][i][j], rmq[jump1-1][jump2-1][i+(1<<(jump1-1))][j]); | ~~~~~~~~~~~~~~~~~~~~~~^ main.cpp:12:19: note: initializing argument 1 of 'void gcdSelf(int&, int)' 12 | void gcdSelf(int &a, int b){ | ~~~~~^ main.cpp:48:51: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'long long int' 48 | gcdSelf(rmq[jump1][jump2][i][j], rmq[jump1-1][jump2-1][i][j+(1<<(jump2-1))]); | ~~~~~~~~~~~~~~~~~~~~~~^ main.cpp:12:19: note: initializing argument 1 of 'void gcdSelf(int&, int)' 12 | void gcdSelf(int &a, int b){ | ~~~~~^ main.cpp:49:51: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'long long int' 49 | gcdSelf(rmq[jump1][jump2][i][j], rmq[jump1-1][jump2-1][i+(1<<(jump1-1))][j+(1<<(jump2-1))]); | ~~~~~~~~~~~~~~~~~~~~~~^ main.cpp:12:19: note: initializing argument 1 of 'void gcdSelf(int&, int)' 12 | void gcdSelf(int &a, int b){ | ~~~~~^ Non zero exit status: 1

Ceva nu functioneaza?