Borderou de evaluare (job #2693720)

Utilizator gasparrobert95Gaspar Robert Andrei gasparrobert95 Data 6 ianuarie 2021 20:48:53
Problema Apel Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

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
12ms131kbIncorect0
22ms131kbIncorect0
33ms131kbIncorect0
42ms131kbIncorect0
53ms131kbIncorect0
64ms131kbIncorect0
72ms131kbOK10
83ms131kbIncorect0
93ms131kbIncorect0
102ms131kbIncorect0
Punctaj total10

Ceva nu functioneaza?