Pagini recente » Borderou de evaluare (job #255308) | Borderou de evaluare (job #479062) | Borderou de evaluare (job #261128) | Borderou de evaluare (job #119031) | Borderou de evaluare (job #1814014)
Borderou de evaluare (job #1814014)
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 | 596kb | OK | 5 |
| 2 | 0ms | 1220kb | OK | 5 |
| 3 | 8ms | 1244kb | OK | 5 |
| 4 | 20ms | 1240kb | OK | 5 |
| 5 | 36ms | 1236kb | OK | 5 |
| 6 | 68ms | 1244kb | OK | 5 |
| 7 | 0ms | 1240kb | OK | 5 |
| 8 | 0ms | 1248kb | OK | 5 |
| 9 | 0ms | 1248kb | OK | 5 |
| 10 | 4ms | 1272kb | OK | 5 |
| 11 | 4ms | 1296kb | OK | 5 |
| 12 | 8ms | 1360kb | OK | 5 |
| 13 | 12ms | 1472kb | OK | 5 |
| 14 | 20ms | 1704kb | OK | 5 |
| 15 | 24ms | 1828kb | OK | 5 |
| 16 | 36ms | 2116kb | OK | 5 |
| 17 | 48ms | 2408kb | OK | 5 |
| 18 | 60ms | 2700kb | OK | 5 |
| 19 | 76ms | 3108kb | OK | 5 |
| 20 | 92ms | 3284kb | Incorect | 0 |
| Punctaj total | 95 |