Pagini recente » Borderou de evaluare (job #2394995) | Borderou de evaluare (job #311601) | Borderou de evaluare (job #101779) | Borderou de evaluare (job #865636) | Borderou de evaluare (job #1202140)
Borderou de evaluare (job #1202140)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:27:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (v[cuv[i]] == 1)
^
user.cpp:28:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
same++, v[cuv[i]] = 2;
^
user.cpp:29:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
else if (!v[cuv[i]])
^
user.cpp:30:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
dist++, v[cuv[i]] = 1;
^
user.cpp:19:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cod2.in", "r", stdin);
^
user.cpp:20:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cod2.out", "w", stdout);
^
user.cpp:22:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%s", &N, cuv);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 264kb | OK | 10 |
2 | 0ms | 264kb | OK | 10 |
3 | 0ms | 256kb | OK | 10 |
4 | 0ms | 260kb | OK | 10 |
5 | 0ms | 260kb | OK | 10 |
6 | 0ms | 260kb | OK | 10 |
7 | 0ms | 264kb | OK | 10 |
8 | 0ms | 260kb | OK | 10 |
9 | 0ms | 256kb | OK | 10 |
10 | 0ms | 264kb | OK | 10 |
Punctaj total | 100 |