Borderou de evaluare (job #2079628)

Utilizator borscalinCalin-Stefan Georgescu borscalin Data 1 decembrie 2017 17:14:36
Problema Poarta Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In member function ‘coord coord::operator+(coord)’: user.cpp:13:19: warning: narrowing conversion of ‘(((int)((coord*)this)->coord::x) + ((int)a.coord::x))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] return {x + a.x, y + a.y}; ^ user.cpp:13:28: warning: narrowing conversion of ‘(((int)((coord*)this)->coord::y) + ((int)a.coord::y))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] return {x + a.x, y + a.y}; ^ user.cpp: In function ‘int main()’: user.cpp:49:33: warning: narrowing conversion of ‘x’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] porti[i] = (coord) {x, y}; ^ user.cpp:49:33: warning: narrowing conversion of ‘y’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] user.cpp:44:37: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d%d%hd", &n, &m, &k); ^ user.cpp:45:68: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%hd%hd%hd%hd", &start.x, &start.y, &dest.x, &dest.y); /// start si destinatie ^ user.cpp:47:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d%d", &x, &y); /// stocam portile ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms492kbOkay10
20ms464kbOkay10
30ms460kbOkay10
44ms504kbOkay10
50ms496kbOkay10
64ms500kbOkay10
70ms496kbOkay10
80ms492kbOkay10
90ms480kbOkay10
100ms472kbOkay10
Punctaj total100

Ceva nu functioneaza?