Pagini recente » Borderou de evaluare (job #3345853) | Borderou de evaluare (job #3344733) | Monitorul de evaluare | Borderou de evaluare (job #3335901) | Borderou de evaluare (job #3349040)
Borderou de evaluare (job #3349040)
Raport evaluator
Compilare:
main.cpp: In function 'int compute_function(char, const std::vector<int>&)':
main.cpp:23:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | for(int i = 0; i < operands.size(); ++i)
| ~~^~~~~~~~~~~~~~~~~
main.cpp:28:33: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | return compute_postfix(func[fun], vars);
| ^~~
main.cpp: In function 'std::vector<std::__cxx11::basic_string<char> > infix_to_postfix(const std::vector<std::__cxx11::basic_string<char> >&)':
main.cpp:63:49: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
63 | if(isdigit(token[0]) || token[0] >= 'a' && token[0] <= 'z')
main.cpp: In function 'int compute_postfix(const std::vector<std::__cxx11::basic_string<char> >&, int*)':
main.cpp:112:49: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
112 | if(isdigit(token[0]) || token[0] >= 'a' && token[0] <= 'z')
main.cpp:120:47: warning: array subscript has type 'char' [-Wchar-subscripts]
120 | st.push(to_string(var[token[0]]));
| ^
main.cpp:157:61: warning: array subscript has type 'char' [-Wchar-subscripts]
157 | func_operands = vector<int>(funcpar[token[0]], 0);
| ^
main.cpp:158:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
158 | for(int i = 1; i <= func_operands.size() && !st.empty(); ++i)
| ~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:187:27: warning: array subscript has type 'char' [-Wchar-subscripts]
187 | var[temp[0][0]] = stoi(temp[2]);
| ^
main.cpp:195:39: warning: array subscript has type 'char' [-Wchar-subscripts]
195 | funcpar[temp[0][0]]++;
| ^
main.cpp:200:28: warning: array subscript has type 'char' [-Wchar-subscripts]
200 | func[temp[0][0]] = tokenize(s.substr(i));
| ^
main.cpp:201:28: warning: array subscript has type 'char' [-Wchar-subscripts]
201 | func[temp[0][0]] = infix_to_postfix(func[temp[0][0]]);
| ^
main.cpp:201:64: warning: array subscript has type 'char' [-Wchar-subscripts]
201 | func[temp[0][0]] = infix_to_postfix(func[temp[0][0]]);
| ^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 303kb | OK | 10 |
| 2 | 0ms | 303kb | OK | 10 |
| 3 | 0ms | 303kb | OK | 10 |
| 4 | 0ms | 303kb | OK | 10 |
| 5 | 0ms | 303kb | OK | 10 |
| 6 | 0ms | 303kb | OK | 10 |
| 7 | 0ms | 303kb | OK | 10 |
| 8 | 0ms | 303kb | OK | 10 |
| 9 | 0ms | 303kb | OK | 10 |
| 10 | 0ms | 303kb | OK | 10 |
| Punctaj total | 100 |