Borderou de evaluare (job #1809990)

Utilizator giotoPopescu Ioan gioto Data 19 noiembrie 2016 14:58:52
Problema Swap Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:40:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] ++f[a[i]]; ^ user.cpp:42:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(f[b[i]] == 0) ^ user.cpp:44:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] --f[b[i]]; ^ user.cpp:47:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] pos[a[i]][++LE[a[i]]] = i + 1; ^ user.cpp:47:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] pos[a[i]][++LE[a[i]]] = i + 1; ^ user.cpp:49:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] d[i] = pos[b[i]][++C[b[i]]]; ^ user.cpp:49:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] d[i] = pos[b[i]][++C[b[i]]]; ^ user.cpp:34:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("swap.in", "r", stdin); ^ user.cpp:35:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("swap.out", "w", stdout); ^ user.cpp:36:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", a); ^ user.cpp:37:19: 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
10ms280kbOK10
20ms244kbOK10
30ms316kbOK10
40ms416kbOK10
54ms704kbOK10
64ms972kbOK10
78ms988kbOK10
84ms992kbOK10
98ms996kbOK10
108ms1064kbOK10
Punctaj total100

Ceva nu functioneaza?