Borderou de evaluare (job #1524045)

Utilizator SmarandaMaria Pandele Smaranda Data 13 noiembrie 2015 15:20:57
Problema Pirati Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 1

Raport evaluator

Compilare: main.cpp: In function 'void myfill(int, int)': main.cpp:22:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if (xn >= 0 && xn < n && yn >= 0 && yn < m) ^ main.cpp: In function 'int main()': main.cpp:58:28: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[1001]' [-Wformat=] scanf ("%s", &H [i]); ^ main.cpp:53:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("pirati.in", "r", stdin); ^ main.cpp:54:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("pirati.out", "w", stdout); ^ main.cpp:56:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf ("%d%d%d\n", &n, &m, &q); ^ main.cpp:58:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf ("%s", &H [i]); ^ main.cpp:70:47: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf ("%d%d%d%d", &xs, &ys, &xf, &yf); ^ main.cpp: In function 'void myfill(int, int)': main.cpp:20:23: warning: iteration 7 invokes undefined behavior [-Waggressive-loop-optimizations] xn = x + dx [k]; ~~~~~^ main.cpp:19:19: note: within this loop for (k = 0; k < 8; k ++) { ~~^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
126ms12582kbRaspuns gresit!0
234ms13238kbRaspuns gresit!0
362ms16248kbRaspuns gresit!0
4112ms21217kbRaspuns gresit!0
5289ms39682kbRaspuns gresit!0
6315ms40869kbRaspuns gresit!0
7345ms42573kbRaspuns gresit!0
8357ms45834kbRaspuns gresit!0
9378ms45264kbRaspuns gresit!0
10416ms45760kbRaspuns gresit!0
1128ms12189kbRaspuns gresit!0
1228ms12189kbOK!1
Punctaj total1

Ceva nu functioneaza?