Borderou de evaluare (job #3285734)
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: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:78:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
78 | for(int i = 0; i < v.size(); i ++)
| ~~^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:100:13: warning: array subscript has type 'char' [-Wchar-subscripts]
100 | oki[x] = 1 - oki[x]; ind = 0;
| ^
main.cpp:100:26: warning: array subscript has type 'char' [-Wchar-subscripts]
100 | oki[x] = 1 - oki[x]; ind = 0;
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 303kb | OK | 10 |
2 | 0ms | 303kb | Incorect | 0 |
3 | 0ms | 303kb | Incorect | 0 |
4 | 0ms | 303kb | Incorect | 0 |
5 | 1ms | 303kb | Incorect | 0 |
6 | 1ms | 303kb | Incorect | 0 |
7 | 1ms | 303kb | OK | 10 |
8 | 1ms | 303kb | OK | 10 |
9 | 1ms | 303kb | OK | 10 |
10 | 1ms | 303kb | OK | 10 |
Punctaj total | 50 |