Pagini recente » Borderou de evaluare (job #322419) | Borderou de evaluare (job #384899) | Borderou de evaluare (job #245022) | Borderou de evaluare (job #1280019) | Borderou de evaluare (job #2521644)
Borderou de evaluare (job #2521644)
Raport evaluator
Compilare:
main.cpp: In function 'void citire()':
main.cpp:21:25: warning: array subscript has type 'char' [-Wchar-subscripts]
valoare[s[0]] = valoare[s[0]] * 10 + s[i] - '0';
^
main.cpp:21:41: warning: array subscript has type 'char' [-Wchar-subscripts]
valoare[s[0]] = valoare[s[0]] * 10 + s[i] - '0';
^
main.cpp:29:15: warning: array subscript has type 'char' [-Wchar-subscripts]
e[s[0]] = s.substr(st + 1, l - 1);
^
main.cpp: In function 'long long int getNextValue(int, char)':
main.cpp:34:24: warning: array subscript has type 'char' [-Wchar-subscripts]
if ('0' <= e[litera][i] && e[litera][i] <= '9')
^
main.cpp:34:40: warning: array subscript has type 'char' [-Wchar-subscripts]
if ('0' <= e[litera][i] && e[litera][i] <= '9')
^
main.cpp:35:24: warning: array subscript has type 'char' [-Wchar-subscripts]
return e[litera][i] - '0';
^
main.cpp:36:29: warning: array subscript has type 'char' [-Wchar-subscripts]
return st.top()[e[litera][i] - 'a'];
^
main.cpp: In function 'long long int rezFunctie()':
main.cpp:42:21: warning: array subscript has type 'char' [-Wchar-subscripts]
int l = e[litera].length();
^
main.cpp:47:35: warning: array subscript has type 'char' [-Wchar-subscripts]
if (i == l - 1 || e[litera][i + 1] == '+' || e[litera][i + 1] == '-') {
^
main.cpp:47:62: warning: array subscript has type 'char' [-Wchar-subscripts]
if (i == l - 1 || e[litera][i + 1] == '+' || e[litera][i + 1] == '-') {
^
main.cpp:54:39: warning: array subscript has type 'char' [-Wchar-subscripts]
ultimulSemn = e[litera][i + 1];
^
main.cpp:57:28: warning: array subscript has type 'char' [-Wchar-subscripts]
} else if (e[litera][i + 1] == '*')
^
main.cpp: In function 'long long int evalExpr()':
main.cpp:76:46: warning: array subscript has type 'char' [-Wchar-subscripts]
st.top().push_back(valoare[ini[i]]);
^
main.cpp:87:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | Incorect | 0 |
2 | 3ms | 131kb | Incorect | 0 |
3 | 2ms | 131kb | Incorect | 0 |
4 | 3ms | 131kb | Incorect | 0 |
5 | 2ms | 131kb | Incorect | 0 |
6 | 2ms | 131kb | Incorect | 0 |
7 | 2ms | 131kb | OK | 10 |
8 | 7ms | 131kb | Incorect | 0 |
9 | 2ms | 131kb | Incorect | 0 |
10 | 2ms | 131kb | Incorect | 0 |
Punctaj total | 10 |