Borderou de evaluare (job #2036064)

Utilizator andreisontea01Andrei Sontea andreisontea01 Data 10 octombrie 2017 11:06:42
Problema Elicop Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:114:37: warning: format ‘%x’ expects argument of type ‘unsigned int*’, but argument 2 has type ‘bool*’ [-Wformat=] scanf("%x", &gazon[i][j]); ^ user.cpp:108:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("elicop.in", "r", stdin); ^ user.cpp:109:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("elicop.out", "w", stdout); ^ user.cpp:111:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &m, &n); ^ user.cpp:114:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%x", &gazon[i][j]); ^ user.cpp:116:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &k); ^ user.cpp:119:63: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d%d", &lin1, &col1, &lin2, &col2, &sens); ^ user.cpp:13:24: warning: array subscript is above array bounds [-Warray-bounds] #define sens triunghi[5] ^ user.cpp:121:74: note: in expansion of macro ‘sens’ cerr << stx << " " << sty << "\n" << drx << " " << dry << " " << sens << "\n\n"; ^ user.cpp:122:46: warning: array subscript is above array bounds [-Warray-bounds] if(calc_arie(stx, sty, drx, dry, sens) == 1) ^ user.cpp:124:46: warning: array subscript is above array bounds [-Warray-bounds] if(calc_arie(stx, sty, drx, dry, sens) == 2){ ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms476kbLike a boss !10
28ms472kbLike a boss !10
38ms472kbLike a boss !10
48ms468kbLike a boss !10
58ms472kbLike a boss !10
620ms476kbLike a boss !10
7Depăşit476kbTime limit exceeded.0
836ms476kbLike a boss !10
956ms476kbLike a boss !10
10Depăşit472kbTime limit exceeded.0
Punctaj total80

Ceva nu functioneaza?