Borderou de evaluare (job #2874705)

Utilizator traiandobrinDobrin Traian traiandobrin Data 19 martie 2022 23:43:53
Problema Formulaone Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int32_t main()': main.cpp:67:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 67 | if(bb*bb-4*aa*cc<0) | ^~ main.cpp:69:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 69 | double x1=-1,x2=-1; | ^~~~~~ main.cpp:71:17: error: 'sqrt' was not declared in this scope 71 | x1=(-bb+sqrt(bb*bb-4*aa*cc))/(2*aa); | ^~~~ main.cpp:80:38: warning: narrowing conversion of 'x1' from 'double' to 'long long int' [-Wnarrowing] 80 | v.push_back({i,j,x1}); | ^~ main.cpp:82:40: warning: narrowing conversion of '(x1 + (double)1)' from 'double' to 'long long int' [-Wnarrowing] 82 | v.push_back({i,j,x1+1}); | ~~^~ main.cpp:78:19: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 78 | if(x1>0) | ^ main.cpp:86:36: warning: narrowing conversion of '(x1 + (double)1)' from 'double' to 'long long int' [-Wnarrowing] 86 | v.push_back({j,i,x1+1}); | ~~^~ main.cpp:95:40: warning: narrowing conversion of '(x1 + (double)1)' from 'double' to 'long long int' [-Wnarrowing] 95 | v.push_back({j,i,x1+1}); | ~~^~ main.cpp:100:42: warning: narrowing conversion of 'x1' from 'double' to 'long long int' [-Wnarrowing] 100 | v.push_back({i,j,x1}); | ^~ main.cpp:102:44: warning: narrowing conversion of '(x1 + (double)1)' from 'double' to 'long long int' [-Wnarrowing] 102 | v.push_back({i,j,x1+1}); | ~~^~ main.cpp:109:38: warning: narrowing conversion of 'x2' from 'double' to 'long long int' [-Wnarrowing] 109 | v.push_back({i,j,x2}); | ^~ main.cpp:111:40: warning: narrowing conversion of '(x2 + (double)1)' from 'double' to 'long long int' [-Wnarrowing] 111 | v.push_back({i,j,x2+1}); | ~~^~ main.cpp:115:44: warning: narrowing conversion of '(x1 + (double)1)' from 'double' to 'long long int' [-Wnarrowing] 115 | v.push_back({j,i,x1+1}); | ~~^~ main.cpp:123:19: warning: unused variable 'lasttime' [-Wunused-variable] 123 | int p1=0,p2=1,lasttime=0,siz=v.size(); | ^~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?