Borderou de evaluare (job #1911831)

Utilizator RusuAlexeiRusu Alexei RusuAlexei Data 7 martie 2017 21:55:55
Problema Cel mai lung subsir comun Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:30:39: warning: array subscript has type ‘char’ [-Wchar-subscripts] for (i=1; i<=m; i++) scanf("%d", &a[i]); ^ user.cpp:30:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=] for (i=1; i<=m; i++) scanf("%d", &a[i]); ^ user.cpp:31:39: warning: array subscript has type ‘char’ [-Wchar-subscripts] for (i=1; i<=n; i++) scanf("%d", &b[i]); ^ user.cpp:31:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=] for (i=1; i<=n; i++) scanf("%d", &b[i]); ^ user.cpp:35:11: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (a[i] == b[j]) dp[i][j] = dp[i-1][j-1]+1; ^ user.cpp:35:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (a[i] == b[j]) dp[i][j] = dp[i-1][j-1]+1; ^ user.cpp:35:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (a[i] == b[j]) dp[i][j] = dp[i-1][j-1]+1; ^ user.cpp:35:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (a[i] == b[j]) dp[i][j] = dp[i-1][j-1]+1; ^ user.cpp:36:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] else dp[i][j] = max(dp[i-1][j], dp[i][j-1]); ^ user.cpp:36:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] else dp[i][j] = max(dp[i-1][j], dp[i][j-1]); ^ user.cpp:36:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] else dp[i][j] = max(dp[i-1][j], dp[i][j-1]); ^ user.cpp:36:40: warning: array subscript has type ‘char’ [-Wchar-subscripts] else dp[i][j] = max(dp[i-1][j], dp[i][j-1]); ^ user.cpp:22:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cmlsc.in", "r", stdin); ^ user.cpp:23:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cmlsc.out", "w", stdout); ^ user.cpp:28:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &m, &n); ^ user.cpp:30:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (i=1; i<=m; i++) scanf("%d", &a[i]); ^ user.cpp:31:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms276kbRaspuns corect!10
20ms284kbRaspuns corect!10
30ms284kbRaspuns corect!10
4Depăşit236kbTime limit exceeded.0
5Depăşit240kbTime limit exceeded.0
6Depăşit240kbTime limit exceeded.0
7Depăşit244kbTime limit exceeded.0
8Depăşit236kbTime limit exceeded.0
9Depăşit236kbTime limit exceeded.0
10Depăşit236kbTime limit exceeded.0
Punctaj total30

Ceva nu functioneaza?