Pagini recente » Borderou de evaluare (job #847697) | Borderou de evaluare (job #236806) | Borderou de evaluare (job #385209) | Borderou de evaluare (job #941441) | Borderou de evaluare (job #1450173)
Borderou de evaluare (job #1450173)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:21:45: warning: format ‘%s’ expects argument of type ‘char*’, but argument 4 has type ‘char (*)[5]’ [-Wformat=]
scanf ("%d%d\n%s\n",&t,&n, &it[0].second);
^
user.cpp:23:28: warning: array subscript has type ‘char’ [-Wchar-subscripts]
cost[it[0].second[i]] = i;
^
user.cpp:28:37: warning: array subscript has type ‘char’ [-Wchar-subscripts]
k += cost[it[i].second[j]] * p, p *= 12;
^
user.cpp:19: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:20: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:21: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:25: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:23:27: warning: iteration 5u invokes undefined behavior [-Waggressive-loop-optimizations]
cost[it[0].second[i]] = i;
^
user.cpp:4:19: note: containing loop
#define FOR(i, n) for (int i = 0; i < (int)(n); i++)
^
user.cpp:22: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 | 276kb | OK | 5 |
3 | 16ms | 852kb | OK | 5 |
4 | 36ms | 1440kb | OK | 5 |
5 | 72ms | 2608kb | OK | 5 |
6 | 60ms | Depăşit | Memory limit exceeded. | 0 |
7 | 0ms | 260kb | OK | 5 |
8 | 0ms | 268kb | OK | 5 |
9 | 0ms | 284kb | OK | 5 |
10 | 0ms | 316kb | OK | 5 |
11 | 4ms | 376kb | OK | 5 |
12 | 8ms | 496kb | OK | 5 |
13 | 20ms | 724kb | OK | 5 |
14 | 44ms | 1192kb | OK | 5 |
15 | 52ms | 1432kb | OK | 5 |
16 | 76ms | 2020kb | OK | 5 |
17 | 112ms | 2596kb | OK | 5 |
18 | 132ms | 3188kb | OK | 5 |
19 | 172ms | 4004kb | OK | 5 |
20 | 64ms | Depăşit | Memory limit exceeded. | 0 |
Punctaj total | 90 |