Pagini recente » Borderou de evaluare (job #421100) | Borderou de evaluare (job #1302768) | Borderou de evaluare (job #2811520) | Borderou de evaluare (job #2371879) | Borderou de evaluare (job #1492702)
Borderou de evaluare (job #1492702)
Raport evaluator
Compilare:
user.cpp: In function ‘int cmp(const nod&, const nod&)’:
user.cpp:34:28: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if ( pos[ x.sir[i] ] != pos[ y.sir[i] ] )
^
user.cpp:34:47: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if ( pos[ x.sir[i] ] != pos[ y.sir[i] ] )
^
user.cpp:35:38: warning: array subscript has type ‘char’ [-Wchar-subscripts]
return pos[ x.sir[i] ] < pos[ y.sir[i] ];
^
user.cpp:35:56: warning: array subscript has type ‘char’ [-Wchar-subscripts]
return pos[ x.sir[i] ] < pos[ y.sir[i] ];
^
user.cpp: In function ‘int main()’:
user.cpp:51:34: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[6]’ [-Wformat=]
scanf("%s\n", &mat[i].sir);
^
user.cpp:54:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
pos[ sir[i] ] = i;
^
user.cpp:43: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:44: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:46:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &p);
^
user.cpp:47:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &N);
^
user.cpp:48:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s\n", sir);
^
user.cpp:51:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s\n", &mat[i].sir);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 444kb | OK | 5 |
2 | 0ms | 452kb | OK | 5 |
3 | 40ms | 736kb | OK | 5 |
4 | 84ms | 1024kb | OK | 5 |
5 | 180ms | 1616kb | OK | 5 |
6 | Depăşit | 2736kb | Time limit exceeded. | 0 |
7 | 0ms | 436kb | OK | 5 |
8 | 0ms | 440kb | OK | 5 |
9 | 0ms | 448kb | OK | 5 |
10 | 4ms | 464kb | OK | 5 |
11 | 8ms | 492kb | OK | 5 |
12 | 16ms | 552kb | OK | 5 |
13 | 36ms | 668kb | OK | 5 |
14 | 80ms | 908kb | OK | 5 |
15 | 104ms | 1024kb | OK | 5 |
16 | 160ms | 1316kb | OK | 5 |
17 | 212ms | 1612kb | OK | 5 |
18 | 272ms | 1904kb | OK | 5 |
19 | Depăşit | 2292kb | Time limit exceeded. | 0 |
20 | Depăşit | 2740kb | Time limit exceeded. | 0 |
Punctaj total | 85 |