Borderou de evaluare (job #2248881)

Utilizator UPB_Just_A_MomentUPB Dumitru Rada Streche UPB_Just_A_Moment Data 29 septembrie 2018 13:43:53
Problema Laundering Status done
Runda Nationala ACM ICPC 2018 Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:28:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] nr[c]++; ^ user.cpp:32:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < s.size(); i++) ~~^~~~~~~~~~ user.cpp:63:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (nrb[0] > s.size() / 2) ~~~~~~~^~~~~~~~~~~~~~ user.cpp:71:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] nr[c]++; ^ user.cpp:76:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < s.size(); i++) ~~^~~~~~~~~~ user.cpp:80:48: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (s.size() - i - nrb[i] == nr[bad] && s[i] != bad) ^ user.cpp:80:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (s.size() - i - nrb[i] == nr[bad] && s[i] != bad) ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ user.cpp:83:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] nr[bad]--; ^ user.cpp:15:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("laundering.in", "r", stdin); ^ user.cpp:16:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("laundering.out", "w", stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
164ms3868kbOK100
Punctaj total100

Ceva nu functioneaza?