Borderou de evaluare (job #2362115)

Utilizator ocmisSlol name ocmisS Data 2 martie 2019 22:09:34
Problema Sume Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:14:28: error: 'sqrt' was not declared in this scope size = (1 + sqrt(1 + 8 * p)) / 2; ^ main.cpp:19:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (int i = size - 2; i >= 0; i--) ^~~ main.cpp:21:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' out << size << "\n"; ^~~ main.cpp:9:7: warning: unused variable 'cond' [-Wunused-variable] bool cond = true; ^~~~ Non zero exit status: 1

Ceva nu functioneaza?