Pagini recente » Borderou de evaluare (job #1011162) | Borderou de evaluare (job #2866947) | Borderou de evaluare (job #2710011) | Borderou de evaluare (job #1434513) | Borderou de evaluare (job #1450165)
Borderou de evaluare (job #1450165)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:23:45: warning: format ‘%s’ expects argument of type ‘char*’, but argument 4 has type ‘char (*)[6]’ [-Wformat=]
scanf ("%d%d\n%s\n",&t,&n, &it[0].second);
^
user.cpp:25:28: warning: array subscript has type ‘char’ [-Wchar-subscripts]
cost[it[0].second[i]] = i;
^
user.cpp:30:37: warning: array subscript has type ‘char’ [-Wchar-subscripts]
k += cost[it[i].second[j]] * p, p *= 12;
^
user.cpp:21:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("zimeria.in","r",stdin);
^
user.cpp:22:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("zimeria.out","w",stdout);
^
user.cpp:23:46: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d%d\n%s\n",&t,&n, &it[0].second);
^
user.cpp:27:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%s\n", it[i].second);
^
user.cpp:25:27: warning: iteration 6u invokes undefined behavior [-Waggressive-loop-optimizations]
cost[it[0].second[i]] = i;
^
user.cpp:5:19: note: containing loop
#define FOR(i, n) for (int i = 0; i < (int)(n); i++)
^
user.cpp:24:5: note: in expansion of macro ‘FOR’
FOR(i,13)
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 268kb | OK | 5 |
2 | 0ms | 272kb | OK | 5 |
3 | 16ms | 844kb | OK | 5 |
4 | 40ms | 1432kb | OK | 5 |
5 | 76ms | 2604kb | OK | 5 |
6 | 64ms | Depăşit | Memory limit exceeded. | 0 |
7 | 0ms | 260kb | OK | 5 |
8 | 0ms | 268kb | OK | 5 |
9 | 0ms | 272kb | OK | 5 |
10 | 0ms | 308kb | OK | 5 |
11 | 4ms | 372kb | OK | 5 |
12 | 8ms | 492kb | OK | 5 |
13 | 20ms | 724kb | OK | 5 |
14 | 40ms | 1188kb | OK | 5 |
15 | 52ms | 1424kb | OK | 5 |
16 | 80ms | 2012kb | OK | 5 |
17 | 108ms | 2592kb | OK | 5 |
18 | 140ms | 3184kb | OK | 5 |
19 | 184ms | 4000kb | OK | 5 |
20 | 64ms | Depăşit | Memory limit exceeded. | 0 |
Punctaj total | 90 |