Borderou de evaluare (job #2848103)

Utilizator domistnSatnoianu Dominic Ioan domistn Data 12 februarie 2022 10:00:32
Problema Geometry Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:43:20: warning: unused variable 'x' [-Wunused-variable] 43 | for(int i = 1, x, y, z, t; i <= n; ++i) { | ^ main.cpp:43:23: warning: unused variable 'y' [-Wunused-variable] 43 | for(int i = 1, x, y, z, t; i <= n; ++i) { | ^ main.cpp:43:26: warning: unused variable 'z' [-Wunused-variable] 43 | for(int i = 1, x, y, z, t; i <= n; ++i) { | ^ main.cpp:43:29: warning: unused variable 't' [-Wunused-variable] 43 | for(int i = 1, x, y, z, t; i <= n; ++i) { | ^ main.cpp:31:45: warning: 'py' may be used uninitialized in this function [-Wmaybe-uninitialized] 31 | return sqrt((X1 - X2) * (X1 - X2) + (Y1 - Y2) * (Y1 - Y2)); | ~~~~^~~~~ main.cpp:66:24: note: 'py' was declared here 66 | double px, py; //punctul de intersectie al dreptelor | ^~ main.cpp:31:21: warning: 'px' may be used uninitialized in this function [-Wmaybe-uninitialized] 31 | return sqrt((X1 - X2) * (X1 - X2) + (Y1 - Y2) * (Y1 - Y2)); | ~~~~^~~~~ main.cpp:66:20: note: 'px' was declared here 66 | double px, py; //punctul de intersectie al dreptelor | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms184kbOK1050
22ms184kbOK10
32ms184kbOK10
42ms184kbOK10
52ms184kbOK10
62ms184kbOK1010
716ms200kbOK1010
816ms200kbOK1010
916ms200kbOK1010
1016ms200kbOK1010
Punctaj total100

Ceva nu functioneaza?