Borderou de evaluare (job #2304510)

Utilizator AndreiVisoiuAndrei Visoiu AndreiVisoiu Data 18 decembrie 2018 09:40:14
Problema Poarta Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:56:48: warning: format '%i' expects argument of type 'int*', but argument 2 has type 'short int*' [-Wformat=] scanf("%i %i %i %i", &E.x, &E.y, &D.x, &D.y); ^ main.cpp:56:48: warning: format '%i' expects argument of type 'int*', but argument 3 has type 'short int*' [-Wformat=] main.cpp:56:48: warning: format '%i' expects argument of type 'int*', but argument 4 has type 'short int*' [-Wformat=] main.cpp:56:48: warning: format '%i' expects argument of type 'int*', but argument 5 has type 'short int*' [-Wformat=] main.cpp:59:34: warning: format '%i' expects argument of type 'int*', but argument 2 has type 'short int*' [-Wformat=] scanf("%i %i", &P.x, &P.y); ^ main.cpp:59:34: warning: format '%i' expects argument of type 'int*', but argument 3 has type 'short int*' [-Wformat=] main.cpp:46:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("poarta.in", "r", stdin); ^ main.cpp:47:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("poarta.out", "w", stdout); ^ main.cpp:53:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%i %i %i", &n, &m, &k); ^ main.cpp:56:49: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%i %i %i %i", &E.x, &E.y, &D.x, &D.y); ^ main.cpp:59:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%i %i", &P.x, &P.y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbKilled by Signal 110
22ms131kbKilled by Signal 110
32ms131kbKilled by Signal 110
42ms131kbKilled by Signal 110
52ms131kbKilled by Signal 110
63ms131kbKilled by Signal 110
73ms131kbKilled by Signal 110
82ms131kbKilled by Signal 110
92ms131kbKilled by Signal 110
102ms131kbOkay10
Punctaj total10

Ceva nu functioneaza?