Borderou de evaluare (job #823081)

Utilizator avatar bogdan_ Goian Bogdan bogdan_ IP ascuns
Problemă Forma (clasa a 8-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 9 mai 2025 18:08:33 Scor 28

Raport evaluator

Compilare: main.cpp: In function 'void baza(std::string&)': main.cpp:22:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 22 | for(int i=0; i<s.size(); i++) v.push_back({s[i]-'0', i}); | ~^~~~~~~~~ main.cpp:24:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<unsigned char, unsigned char> >::size_type' {aka 'unsigned int'} [-Wsign-compare] 24 | for(int i=0; i<v.size(); i++) v[i].first=i+1; | ~^~~~~~~~~ main.cpp:28:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<unsigned char, unsigned char> >::size_type' {aka 'unsigned int'} [-Wsign-compare] 28 | for(int i=0; i<v.size(); i++) s+=char((int)v[i].first+'0'); | ~^~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb Raspuns corect! 10
2 1 ms 266 kb Ai gresit complet! 0
3 1 ms 266 kb Ai gresit complet! 0
4 1 ms 249 kb Ai gresit complet! 0
5 1 ms 266 kb Ai gresit complet! 0
6 9 ms 245 kb a) corect b) gresit 4
7 1 ms 245 kb Raspuns corect! 10
8 29 ms 512 kb Ai gresit complet! 0
9 1 ms 249 kb a) corect b) gresit 4
10 9 ms 249 kb Ai gresit complet! 0
Punctaj total 28