Pagini recente » Borderou de evaluare (job #1564206) | Borderou de evaluare (job #1942731) | Borderou de evaluare (job #2513246) | Borderou de evaluare (job #2689051) | Borderou de evaluare (job #1492704)
Borderou de evaluare (job #1492704)
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 | 440kb | OK | 5 |
2 | 0ms | 448kb | OK | 5 |
3 | 36ms | 740kb | OK | 5 |
4 | 72ms | 1028kb | OK | 5 |
5 | 156ms | 1612kb | OK | 5 |
6 | Depăşit | 2768kb | Time limit exceeded. | 0 |
7 | 0ms | 440kb | OK | 5 |
8 | 0ms | 440kb | OK | 5 |
9 | 0ms | 444kb | OK | 5 |
10 | 4ms | 468kb | OK | 5 |
11 | 8ms | 492kb | OK | 5 |
12 | 16ms | 556kb | OK | 5 |
13 | 36ms | 664kb | OK | 5 |
14 | 72ms | 908kb | OK | 5 |
15 | 88ms | 1024kb | OK | 5 |
16 | 144ms | 1312kb | OK | 5 |
17 | 188ms | 1608kb | OK | 5 |
18 | 236ms | 1900kb | OK | 5 |
19 | Depăşit | 2312kb | Time limit exceeded. | 0 |
20 | Depăşit | 2760kb | Time limit exceeded. | 0 |
Punctaj total | 85 |