Pagini recente » Borderou de evaluare (job #1333890) | Borderou de evaluare (job #514543) | Borderou de evaluare (job #778334) | Borderou de evaluare (job #397979) | Borderou de evaluare (job #2079628)
Borderou de evaluare (job #2079628)
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 |
1 | 0ms | 492kb | Okay | 10 |
2 | 0ms | 464kb | Okay | 10 |
3 | 0ms | 460kb | Okay | 10 |
4 | 4ms | 504kb | Okay | 10 |
5 | 0ms | 496kb | Okay | 10 |
6 | 4ms | 500kb | Okay | 10 |
7 | 0ms | 496kb | Okay | 10 |
8 | 0ms | 492kb | Okay | 10 |
9 | 0ms | 480kb | Okay | 10 |
10 | 0ms | 472kb | Okay | 10 |
Punctaj total | 100 |