Borderou de evaluare (job #3285751)

Utilizator Ruxandra009Ruxandra Vasilescu Ruxandra009 Data 13 martie 2025 14:04:14
Problema Bool Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 70

Raport evaluator

Compilare: main.cpp: In function 'int eval()': main.cpp:16:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 16 | while(ind < s.size() && s[ind] != ')') | ~~~~^~~~~~~~~~ main.cpp:25:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 25 | while(ind < s.size() && s[ind] != ')' && s[ind] != ' ') | ~~~~^~~~~~~~~~ main.cpp:37:39: warning: array subscript has type 'char' [-Wchar-subscripts] 37 | v.push_back(oki[aux[0]] + '0'); | ^ main.cpp:52:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 52 | for(int i = 0; i < v.size(); i ++) | ~~^~~~~~~~~~ main.cpp:64:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 64 | for(int i = 0; i < v.size(); i ++) | ~~^~~~~~~~~~ main.cpp:79:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 79 | for(int i = 0; i < v.size(); i ++) | ~~^~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:102:13: warning: array subscript has type 'char' [-Wchar-subscripts] 102 | oki[x] = 1 - oki[x]; ind = 0; | ^ main.cpp:102:26: warning: array subscript has type 'char' [-Wchar-subscripts] 102 | oki[x] = 1 - oki[x]; ind = 0; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbOK10
30ms303kbIncorect0
40ms303kbIncorect0
51ms303kbIncorect0
61ms303kbOK10
71ms303kbOK10
81ms303kbOK10
91ms303kbOK10
101ms303kbOK10
Punctaj total70

Ceva nu functioneaza?