Borderou de evaluare (job #2139409)

Utilizator EuAlexOtaku Hikikomori EuAlex Data 22 februarie 2018 15:30:12
Problema BMatrix Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int calulareDp(int, int, int, int)’: user.cpp:102:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:112:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(a[i] + 1); ^ In file included from /usr/include/c++/5/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:112:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(a[i] + 1); ^ In file included from /usr/include/c++/5/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:112:22: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(a[i] + 1); ^ In file included from /usr/include/c++/5/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:105:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bmatrix.in", "r", stdin); ^ user.cpp:106:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bmatrix.out", "w", stdout); ^ user.cpp:110:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n", &n, &m); ^ user.cpp:112:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a[i] + 1); ^ user.cpp:119:35: warning: array subscript is above array bounds [-Warray-bounds] if(maxim < dp[1][i] + dp[2][i + 1]) { ^ user.cpp:128:35: warning: array subscript is above array bounds [-Warray-bounds] if(maxim < dp[1][j] + dp[2][j + 1]) { ^ /tmp/ccHz62nb.o: In function `main': user.cpp:(.text.startup+0x6e): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms1044kbKilled by signal 11(SIGSEGV).00
20ms1044kbKilled by signal 11(SIGSEGV).00
30ms1048kbKilled by signal 11(SIGSEGV).00
40ms1044kbKilled by signal 11(SIGSEGV).00
50ms1040kbKilled by signal 11(SIGSEGV).00
60ms1052kbKilled by signal 11(SIGSEGV).00
70ms1048kbKilled by signal 11(SIGSEGV).00
80ms1044kbKilled by signal 11(SIGSEGV).00
90ms1056kbKilled by signal 11(SIGSEGV).00
100ms1044kbKilled by signal 11(SIGSEGV).00
110ms1056kbKilled by signal 11(SIGSEGV).00
120ms1060kbKilled by signal 11(SIGSEGV).00
130ms1052kbKilled by signal 11(SIGSEGV).00
140ms1056kbKilled by signal 11(SIGSEGV).00
150ms1056kbKilled by signal 11(SIGSEGV).00
160ms1052kbKilled by signal 11(SIGSEGV).00
170ms1060kbKilled by signal 11(SIGSEGV).0
180ms1064kbKilled by signal 11(SIGSEGV).0
190ms1060kbKilled by signal 11(SIGSEGV).0
200ms1076kbKilled by signal 11(SIGSEGV).0
210ms1080kbKilled by signal 11(SIGSEGV).0
220ms1072kbKilled by signal 11(SIGSEGV).0
230ms1076kbKilled by signal 11(SIGSEGV).0
240ms1080kbKilled by signal 11(SIGSEGV).0
250ms1080kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?