Pagini recente » Borderou de evaluare (job #2854683) | Borderou de evaluare (job #1241457) | Borderou de evaluare (job #3277473) | Borderou de evaluare (job #294031) | Borderou de evaluare (job #1841642)
Borderou de evaluare (job #1841642)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:20:39: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for(i = 0; i < N; ++i) ++ap[ b[i] ];
^
user.cpp:26:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if( ap[ a[i] ] ) --ap[ a[i] ];
^
user.cpp:26:37: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if( ap[ a[i] ] ) --ap[ a[i] ];
^
user.cpp:32:43: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for(i = 0; i < N; ++i) ++ap[ b[i] ];
^
user.cpp:33:58: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for(i = 0; i < K; ++i) res[i] = a[i], --ap[ a[i] ];
^
user.cpp:44:39: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for(i = 0; i < N; ++i) ++ap[ b[i] ];
^
user.cpp:50:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if( ap[ a[i] ] ) --ap[ a[i] ];
^
user.cpp:50:37: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if( ap[ a[i] ] ) --ap[ a[i] ];
^
user.cpp:56:43: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for(i = 0; i < N; ++i) ++ap[ b[i] ];
^
user.cpp:57:58: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for(i = 0; i < K; ++i) res[i] = a[i], --ap[ a[i] ];
^
user.cpp:11:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("vecini2.in","r",stdin);
^
user.cpp:12:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("vecini2.out","w",stdout);
^
user.cpp:16:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&N);
^
user.cpp:17:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",a);
^
user.cpp:18:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",b);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 272kb | OK | 10 |
2 | 0ms | 280kb | OK | 10 |
3 | 0ms | 276kb | OK | 10 |
4 | 0ms | 268kb | OK | 10 |
5 | 0ms | 272kb | OK | 10 |
6 | 0ms | 268kb | OK | 10 |
7 | 0ms | 268kb | OK | 10 |
8 | 0ms | 268kb | OK | 10 |
9 | 0ms | 272kb | OK | 10 |
10 | 0ms | 268kb | OK | 10 |
Punctaj total | 100 |