Pagini recente » Borderou de evaluare (job #2605365) | Borderou de evaluare (job #1126155) | Borderou de evaluare (job #3274242) | Borderou de evaluare (job #1904349) | Borderou de evaluare (job #2248881)
Borderou de evaluare (job #2248881)
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 |
1 | 64ms | 3868kb | OK | 100 |
Punctaj total | 100 |