Pagini recente » Borderou de evaluare (job #295468) | Borderou de evaluare (job #2570493) | Borderou de evaluare (job #2121211) | Borderou de evaluare (job #392223) | Borderou de evaluare (job #1814016)
Borderou de evaluare (job #1814016)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:21:24: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[20]’ [-Wformat=]
fscanf(in, "%s", &c);
^
user.cpp:24:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
priority[c[i]] = i;
^
user.cpp:30:22: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[20]’ [-Wformat=]
fscanf(in, "%s", &c);
^
user.cpp:33:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
x += priority[c[i]];
^
user.cpp:19:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d %d", &t, &n);
^
user.cpp:21:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%s", &c);
^
user.cpp:30:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%s", &c);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 624kb | OK | 5 |
2 | 0ms | 1228kb | OK | 5 |
3 | 12ms | 1244kb | OK | 5 |
4 | 20ms | 1244kb | OK | 5 |
5 | 36ms | 1244kb | OK | 5 |
6 | 68ms | 1240kb | OK | 5 |
7 | 0ms | 1428kb | OK | 5 |
8 | 0ms | 1436kb | OK | 5 |
9 | 0ms | 1440kb | OK | 5 |
10 | 4ms | 1464kb | OK | 5 |
11 | 4ms | 1488kb | OK | 5 |
12 | 8ms | 1556kb | OK | 5 |
13 | 12ms | 1672kb | OK | 5 |
14 | 20ms | 1904kb | OK | 5 |
15 | 28ms | 2020kb | OK | 5 |
16 | 40ms | 2308kb | OK | 5 |
17 | 48ms | 2604kb | OK | 5 |
18 | 60ms | 2896kb | OK | 5 |
19 | 76ms | 3308kb | OK | 5 |
20 | 92ms | 3776kb | OK | 5 |
Punctaj total | 100 |