Borderou de evaluare (job #3187464)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:33:20: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | ok &= (pos == str.size());
| ~~~~^~~~~~~~~~~~~
main.cpp:32:13: warning: variable '_' set but not used [-Wunused-but-set-variable]
32 | pii _ = expresie();
| ^
main.cpp: In function 'std::pair<long long int, long long int> expresie()':
main.cpp:50:21: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | while(ok && pos < str.size() && str[pos] == '+'){
| ~~~~^~~~~~~~~~~~
main.cpp:52:13: warning: variable 't' set but not used [-Wunused-but-set-variable]
52 | pii t = termen();
| ^
main.cpp: In function 'std::pair<long long int, long long int> termen()':
main.cpp:66:21: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
66 | while(ok && pos < str.size() && str[pos] == '*'){
| ~~~~^~~~~~~~~~~~
main.cpp:68:13: warning: variable 'f' set but not used [-Wunused-but-set-variable]
68 | pii f = factor();
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 303kb | Incorect | 0 |
Punctaj total | 0 |