Pagini recente » Borderou de evaluare (job #3202858) | Borderou de evaluare (job #2489602) | Borderou de evaluare (job #832174) | Borderou de evaluare (job #1563371) | Borderou de evaluare (job #1368950)
Borderou de evaluare (job #1368950)
Raport evaluator
Compilare:
user.cpp: In function ‘bool my_cmp(std::string, std::string)’:
user.cpp:18:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(val[a[i]] < val[b[i]])
^
user.cpp:18:32: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(val[a[i]] < val[b[i]])
^
user.cpp:20:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
else if(val[a[i]] > val[b[i]])
^
user.cpp:20:37: warning: array subscript has type ‘char’ [-Wchar-subscripts]
else if(val[a[i]] > val[b[i]])
^
user.cpp: In function ‘int main()’:
user.cpp:30:19: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[20]’ [-Wformat=]
scanf("%s", &S);
^
user.cpp:32:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
val[S[i]] = i + 1;
^
user.cpp:38:27: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[20]’ [-Wformat=]
scanf("%s", &S);
^
user.cpp:54:27: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[20]’ [-Wformat=]
scanf("%s", &S);
^
user.cpp:26:38: 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:27:40: 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:29:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &t, &N);
^
user.cpp:30:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", &S);
^
user.cpp:38:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", &S);
^
user.cpp:54:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", &S);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 304kb | OK | 5 |
| 2 | 0ms | 368kb | OK | 5 |
| 3 | 152ms | 3132kb | OK | 5 |
| 4 | 220ms | Depăşit | Memory limit exceeded. | 0 |
| 5 | 228ms | Depăşit | Memory limit exceeded. | 0 |
| 6 | 232ms | Depăşit | Memory limit exceeded. | 0 |
| 7 | 0ms | 296kb | OK | 5 |
| 8 | 4ms | 340kb | OK | 5 |
| 9 | 12ms | 372kb | OK | 5 |
| 10 | 40ms | 480kb | OK | 5 |
| 11 | 88ms | 656kb | OK | 5 |
| 12 | 184ms | 928kb | OK | 5 |
| 13 | Depăşit | 1684kb | Time limit exceeded. | 0 |
| 14 | Depăşit | 3100kb | Time limit exceeded. | 0 |
| 15 | Depăşit | 3796kb | Time limit exceeded. | 0 |
| 16 | 144ms | Depăşit | Memory limit exceeded. | 0 |
| 17 | 144ms | Depăşit | Memory limit exceeded. | 0 |
| 18 | 140ms | Depăşit | Memory limit exceeded. | 0 |
| 19 | 140ms | Depăşit | Memory limit exceeded. | 0 |
| 20 | 144ms | Depăşit | Memory limit exceeded. | 0 |
| Punctaj total | 45 |