Pagini recente » Borderou de evaluare (job #217853) | Borderou de evaluare (job #1968972) | Borderou de evaluare (job #3289448) | Borderou de evaluare (job #3285035) | Borderou de evaluare (job #1911831)
Borderou de evaluare (job #1911831)
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 |
1 | 0ms | 276kb | Raspuns corect! | 10 |
2 | 0ms | 284kb | Raspuns corect! | 10 |
3 | 0ms | 284kb | Raspuns corect! | 10 |
4 | Depăşit | 236kb | Time limit exceeded. | 0 |
5 | Depăşit | 240kb | Time limit exceeded. | 0 |
6 | Depăşit | 240kb | Time limit exceeded. | 0 |
7 | Depăşit | 244kb | Time limit exceeded. | 0 |
8 | Depăşit | 236kb | Time limit exceeded. | 0 |
9 | Depăşit | 236kb | Time limit exceeded. | 0 |
10 | Depăşit | 236kb | Time limit exceeded. | 0 |
Punctaj total | 30 |