Borderou de evaluare (job #2818178)

Utilizator RaresFelixTudose Rares Felix RaresFelix Data 15 decembrie 2021 14:55:32
Problema Euclid1 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In member function 'void AINT::update(int, int, int, int, int)': main.cpp:38:16: error: 'gcd' was not declared in this scope 38 | V[u] = gcd(V[u * 2], V[u * 2 + 1]); | ^~~ main.cpp: In member function 'int AINT::query(int, int, int, int, int)': main.cpp:43:16: error: 'gcd' was not declared in this scope 43 | return gcd(query(l, r, u * 2, s, (s + d) / 2), query(l, r, u * 2 + 1, (s + d) / 2 + 1, d)); | ^~~ main.cpp: In function 'int main()': main.cpp:62:27: error: 'gcd' was not declared in this scope 62 | if(a < b) r = gcd(r, Dif.query(a + 1) - Dif.query(a)); | ^~~ main.cpp:63:31: error: 'gcd' was not declared in this scope 63 | if(a + 1 < b) r = gcd(r, DDif.query(a + 2, b)); | ^~~ Non zero exit status: 1

Ceva nu functioneaza?