Borderou de evaluare (job #2832310)

Utilizator gasparrobert95Gaspar Robert Andrei gasparrobert95 Data 13 ianuarie 2022 13:40:54
Problema Copii3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'long long int ternary(int, int)': main.cpp:70:40: warning: pointer to a function used in arithmetic [-Wpointer-arith] 70 | ll st = max(0LL, (nr[r] - nr1[l - 1]) - nr0(dr + 1, n)), dr = min(nr0(1, l - 1), nr[r] - nr[l - 1]); | ^ cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith] main.cpp:70:29: error: invalid operands of types 'long long int' and 'long long int(int, int)' to binary 'operator-' 70 | ll st = max(0LL, (nr[r] - nr1[l - 1]) - nr0(dr + 1, n)), dr = min(nr0(1, l - 1), nr[r] - nr[l - 1]); | ~~~~~ ^ ~~~~~~~~~~ | | | | | long long int(int, int) | long long int main.cpp:70:49: error: 'dr' was not declared in this scope; did you mean 'r'? 70 | ll st = max(0LL, (nr[r] - nr1[l - 1]) - nr0(dr + 1, n)), dr = min(nr0(1, l - 1), nr[r] - nr[l - 1]); | ^~ | r main.cpp:73:26: error: 'mij2' was not declared in this scope; did you mean 'mij'? 73 | if (mij == st && mij2 == dr) | ^~~~ | mij main.cpp:75:50: error: 'mij2' was not declared in this scope; did you mean 'mij'? 75 | ll r1 = calc(l, r, mij), r2 = calc(l, r, mij2); | ^~~~ | mij Non zero exit status: 1

Ceva nu functioneaza?