Borderou de evaluare (job #1908193)

Utilizator RusuAlexeiRusu Alexei RusuAlexei Data 6 martie 2017 23:27:19
Problema Cel mai lung subsir comun Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 30

Raport evaluator

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

Ceva nu functioneaza?