Pagini recente » Borderou de evaluare (job #501685) | Borderou de evaluare (job #784697) | Borderou de evaluare (job #1910606) | Borderou de evaluare (job #1641389) | Borderou de evaluare (job #2553371)
Borderou de evaluare (job #2553371)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:36:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (p < str.length() and str[p] == '1')
~~^~~~~~~~~~~~~~
main.cpp:45:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (p < str.length() and str[p] == '0')
~~^~~~~~~~~~~~~~
main.cpp:56:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i <= aux.length(); ++i) {
~~^~~~~~~~~~~~~~~
main.cpp:57:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i == aux.length() or (i > 0 and aux[i] == '1' and aux[i - 1] == '0')) {
~~^~~~~~~~~~~~~~~
main.cpp:61:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i != aux.length())
~~^~~~~~~~~~~~~~~
main.cpp:23:32: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("blas.in", "r", stdin);
^
main.cpp:24:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("blas.out", "w", stdout);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 3ms | 131kb | OK | 100 |
Punctaj total | 100 |