Borderou de evaluare (job #3184835)

Utilizator deerMohanu Dominic deer Data 17 decembrie 2023 03:10:13
Problema Mirror Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void solve_task1()': main.cpp:30:27: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare] 30 | if (curent.size() == k) | ~~~~~~~~~~~~~~^~~~ main.cpp:27:9: warning: unused variable 'lung' [-Wunused-variable] 27 | int lung = 0; | ^~~~ main.cpp: In function 'long long int modifica(long long int&)': main.cpp:38:1: warning: no return statement in function returning non-void [-Wreturn-type] 38 | } | ^ main.cpp: In function 'void solve_task2()': main.cpp:40:31: warning: unused variable 'e' [-Wunused-variable] 40 | int maxnr = 0, st, dr, p, e; | ^ In file included from /usr/include/c++/12.2.1/istream:39, from /usr/include/c++/12.2.1/sstream:38, from /usr/include/c++/12.2.1/complex:45, from /usr/include/c++/12.2.1/ccomplex:39, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:54, from main.cpp:1: In member function 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>]', inlined from 'void solve_task2()' at main.cpp:62:43: /usr/include/c++/12.2.1/ostream:202:25: warning: 'dr' may be used uninitialized [-Wmaybe-uninitialized] 202 | { return _M_insert(__n); } | ~~~~~~~~~^~~~~ main.cpp: In function 'void solve_task2()': main.cpp:40:24: note: 'dr' was declared here 40 | int maxnr = 0, st, dr, p, e; | ^~ In member function 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>]', inlined from 'void solve_task2()' at main.cpp:62:30: /usr/include/c++/12.2.1/ostream:202:25: warning: 'st' may be used uninitialized [-Wmaybe-uninitialized] 202 | { return _M_insert(__n); } | ~~~~~~~~~^~~~~ main.cpp: In function 'void solve_task2()': main.cpp:40:20: note: 'st' was declared here 40 | int maxnr = 0, st, dr, p, e; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbOK10
30ms303kbOK10
41ms303kbOK10
52ms303kbOK10
639ms4431kbOK10
75ms303kbOK10
819ms303kbOK10
924ms4370kbOK10
100ms303kbOK10
Punctaj total100

Ceva nu functioneaza?