Borderou de evaluare (job #2362116)

Utilizator ocmisSlol name ocmisS Data 2 martie 2019 22:10:07
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:15:28: error: 'sqrt' was not declared in this scope size = (1 + sqrt(1 + 8 * p)) / 2; ^ main.cpp:20:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (int i = size - 2; i >= 0; i--) ^~~ main.cpp:22:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' out << size << "\n"; ^~~ main.cpp:10:7: warning: unused variable 'cond' [-Wunused-variable] bool cond = true; ^~~~ Non zero exit status: 1

Ceva nu functioneaza?