Borderou de evaluare (job #1524082)

Utilizator SmarandaMaria Pandele Smaranda Data 13 noiembrie 2015 15:49:25
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:21: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:54:28: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[1002]' [-Wformat=] scanf ("%s", &H [i]); ^ main.cpp:49: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:50: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:52: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:54:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf ("%s", &H [i]); ^ main.cpp:66: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:19:23: warning: iteration 7 invokes undefined behavior [-Waggressive-loop-optimizations] xn = x + dx [k]; ~~~~~^ main.cpp:18:19: note: within this loop for (k = 0; k < 8; k ++) { ~~^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
129ms12582kbRaspuns gresit!0
234ms13238kbRaspuns gresit!0
363ms16248kbRaspuns gresit!0
4116ms21348kbRaspuns gresit!0
5321ms39682kbRaspuns gresit!0
6313ms40869kbRaspuns gresit!0
7346ms42573kbRaspuns gresit!0
8353ms45965kbRaspuns gresit!0
9359ms45314kbRaspuns gresit!0
10364ms45715kbRaspuns gresit!0
1128ms12189kbRaspuns gresit!0
1228ms12189kbOK!1
Punctaj total1

Ceva nu functioneaza?