Pagini recente » Borderou de evaluare (job #1195933) | Borderou de evaluare (job #2373536) | Borderou de evaluare (job #1930542) | Borderou de evaluare (job #935599) | Borderou de evaluare (job #2693749)
Borderou de evaluare (job #2693749)
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:40:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (paranteze > 0 && pos < exp.size()) {
~~~~^~~~~~~~~~~~
main.cpp:53: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:73: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:90:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (pos < exp.size()) {
~~~~^~~~~~~~~~~~
main.cpp:91:16: warning: array subscript has type 'char' [-Wchar-subscripts]
val[lit] = termenFn(exp, pos);
^
main.cpp:95: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:102:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (exp[pos] == ')' && pos == exp.size() - 1)
~~~~^~~~~~~~~~~~~~~~~
main.cpp:114:31: warning: array subscript has type 'char' [-Wchar-subscripts]
return constval[aux[0]];
^
main.cpp:100:8: warning: unused variable 'nr' [-Wunused-variable]
ll nr = 0, paranteze = 0;
^~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 3ms | 131kb | OK | 10 |
3 | 3ms | 131kb | OK | 10 |
4 | 2ms | 131kb | OK | 10 |
5 | 3ms | 131kb | OK | 10 |
6 | 2ms | 131kb | OK | 10 |
7 | 3ms | 131kb | OK | 10 |
8 | 3ms | 131kb | OK | 10 |
9 | 3ms | 131kb | OK | 10 |
10 | 2ms | 131kb | OK | 10 |
Punctaj total | 100 |