Borderou de evaluare (job #2259788)

Utilizator ionanghelinaIonut Anghelina ionanghelina Data 13 octombrie 2018 19:45:24
Problema Poligon 2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:48:33: warning: format '%f' expects argument of type 'float*', but argument 2 has type 'double*' [-Wformat=] scanf("%f%f",&a[i],&b[i]); ^ main.cpp:48:33: warning: format '%f' expects argument of type 'float*', but argument 3 has type 'double*' [-Wformat=] main.cpp:42:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("poligon2.in","r",stdin); ^ main.cpp:43:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("poligon2.out","w",stdout); ^ main.cpp:45:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ main.cpp:48:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%f%f",&a[i],&b[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
15ms131kbRaspuns gresit!0
23ms131kbRaspuns gresit!0
33ms131kbRaspuns gresit!0
48ms131kbRaspuns gresit!0
57ms131kbRaspuns gresit!0
656ms655kbRaspuns gresit!0
73ms131kbRaspuns gresit!0
810ms131kbRaspuns gresit!0
946ms524kbRaspuns gresit!0
1046ms524kbOKAY!10
Punctaj total10

Ceva nu functioneaza?