Pagini recente » Borderou de evaluare (job #1400942) | Borderou de evaluare (job #1823517) | Borderou de evaluare (job #2296049) | Borderou de evaluare (job #3118344) | Borderou de evaluare (job #1402224)
Borderou de evaluare (job #1402224)
Raport evaluator
Compilare:
user.cpp: In function ‘long int calcDP(long int, long int)’:
user.cpp:17:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
dp[l][r] = c[s[l]][s[r]];
^
user.cpp:17:32: warning: array subscript has type ‘char’ [-Wchar-subscripts]
dp[l][r] = c[s[l]][s[r]];
^
user.cpp:24:102: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for(j=l+1;j<=r;j+=2) dp[l][r]=min(dp[l][r],calcDP(l,i-1)+calcDP(i+1,j-1)+calcDP(j+1,r)+c[s[i]][s[j]]);
^
user.cpp:24:108: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for(j=l+1;j<=r;j+=2) dp[l][r]=min(dp[l][r],calcDP(l,i-1)+calcDP(i+1,j-1)+calcDP(j+1,r)+c[s[i]][s[j]]);
^
user.cpp: In function ‘int main()’:
user.cpp:38:30: warning: array subscript has type ‘char’ [-Wchar-subscripts]
scanf("%ld",&c[c1][c2]);
^
user.cpp:38:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
scanf("%ld",&c[c1][c2]);
^
user.cpp:32:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("redu.in","r",stdin);
^
user.cpp:33:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("redu.out","w",stdout);
^
user.cpp:35:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld\n%s\n",&n,s+1);
^
user.cpp:38:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&c[c1][c2]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 480kb | OK | 10 |
2 | 0ms | 500kb | OK | 10 |
3 | 0ms | 556kb | OK | 10 |
4 | 32ms | 660kb | OK | 10 |
5 | Depăşit | 1024kb | Time limit exceeded. | 0 |
6 | Depăşit | 1428kb | Time limit exceeded. | 0 |
7 | Depăşit | 1428kb | Time limit exceeded. | 0 |
8 | Depăşit | 1428kb | Time limit exceeded. | 0 |
9 | Depăşit | 1428kb | Time limit exceeded. | 0 |
10 | Depăşit | 1428kb | Time limit exceeded. | 0 |
Punctaj total | 40 |