Borderou de evaluare (job #2953530)

Utilizator Victor2006Nicola Victor-Teodor Victor2006 Data 11 decembrie 2022 17:07:57
Problema Infasuratoare convexa Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'double getCos(point, segm)': main.cpp:27:34: error: 'sqrt' was not declared in this scope 27 | return (l1 + l2 - l3) / (2 * sqrt(l1) * sqrt(l2)); | ^~~~ main.cpp: In function 'int main()': main.cpp:51:5: error: 'stiva' was not declared in this scope 51 | stiva[1] = v[0]; | ^~~~~ main.cpp:54:5: error: 'sp' was not declared in this scope 54 | sp = 3; | ^~ main.cpp:56:70: error: could not convert '{<expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'segm' 56 | while ( sp > 3 && getCos(v[i], {stiva[sp - 1], stiva[sp - 2]}) > -1 ) | ^ | | | <brace-enclosed initializer list> Non zero exit status: 1

Ceva nu functioneaza?