Pagini recente » Borderou de evaluare (job #1344126) | Borderou de evaluare (job #240707) | Borderou de evaluare (job #1869104) | Borderou de evaluare (job #1740314) | Borderou de evaluare (job #2693720)
Borderou de evaluare (job #2693720)
Raport evaluator
Compilare:
main.cpp: In function 'void readInput()':
main.cpp:18:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 2; j < s2.size(); ++j)
~~^~~~~~~~~~~
main.cpp:20:27: warning: array subscript has type 'char' [-Wchar-subscripts]
constval[s2[0]] = nr;
^
main.cpp:23:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < s2.size(); ++j)
~~^~~~~~~~~~~
main.cpp:25:34: warning: array subscript has type 'char' [-Wchar-subscripts]
functie[s2[0]] = s2.substr(j + 1, s2.size() - j - 1);
^
main.cpp: In function 'long long int termen(std::__cxx11::string, int&, long long int*)':
main.cpp:36:32: warning: array subscript has type 'char' [-Wchar-subscripts]
return val[exp[pos - 1]];
^
main.cpp: In function 'long long int eval(std::__cxx11::string, long long int*)':
main.cpp:56:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (pos < exp.size()) {
~~~~^~~~~~~~~~~~
main.cpp: In function 'long long int apel(std::__cxx11::string)':
main.cpp:73:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (pos < exp.size()) {
~~~~^~~~~~~~~~~~
main.cpp:74:16: warning: array subscript has type 'char' [-Wchar-subscripts]
val[lit] = termenFn(exp, pos);
^
main.cpp:78:31: warning: array subscript has type 'char' [-Wchar-subscripts]
return eval(functie[exp[0]], val);
^
main.cpp: In function 'long long int termenFn(std::__cxx11::string, int&)':
main.cpp:85:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (exp[pos] == ')' && pos == exp.size() - 1)
~~~~^~~~~~~~~~~~~~~~~
main.cpp:97:31: warning: array subscript has type 'char' [-Wchar-subscripts]
return constval[aux[0]];
^
main.cpp:83:8: warning: unused variable 'nr' [-Wunused-variable]
ll nr = 0, paranteze = 0;
^~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | Incorect | 0 |
2 | 2ms | 131kb | Incorect | 0 |
3 | 3ms | 131kb | Incorect | 0 |
4 | 2ms | 131kb | Incorect | 0 |
5 | 3ms | 131kb | Incorect | 0 |
6 | 4ms | 131kb | Incorect | 0 |
7 | 2ms | 131kb | OK | 10 |
8 | 3ms | 131kb | Incorect | 0 |
9 | 3ms | 131kb | Incorect | 0 |
10 | 2ms | 131kb | Incorect | 0 |
Punctaj total | 10 |