Borderou de evaluare (job #3213326)

Utilizator TghicaGhica Tudor Tghica Data 12 martie 2024 21:46:51
Problema Apel Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int getFactor(int*, char, int&)': main.cpp:30:31: warning: array subscript has type 'char' [-Wchar-subscripts] 30 | if('a' <= expresiePtFunctie[numeFunctie][poz] && expresiePtFunctie[numeFunctie][poz] <= 'z') { | ^~~~~~~~~~~ main.cpp:30:70: warning: array subscript has type 'char' [-Wchar-subscripts] 30 | if('a' <= expresiePtFunctie[numeFunctie][poz] && expresiePtFunctie[numeFunctie][poz] <= 'z') { | ^~~~~~~~~~~ main.cpp:31:40: warning: array subscript has type 'char' [-Wchar-subscripts] 31 | factor = valFact[expresiePtFunctie[numeFunctie][poz] - 'a' + 1]; | ^~~~~~~~~~~ main.cpp:33:38: warning: array subscript has type 'char' [-Wchar-subscripts] 33 | } else if('0' <= expresiePtFunctie[numeFunctie][poz] && expresiePtFunctie[numeFunctie][poz] <= '9') { | ^~~~~~~~~~~ main.cpp:33:77: warning: array subscript has type 'char' [-Wchar-subscripts] 33 | } else if('0' <= expresiePtFunctie[numeFunctie][poz] && expresiePtFunctie[numeFunctie][poz] <= '9') { | ^~~~~~~~~~~ main.cpp:34:39: warning: array subscript has type 'char' [-Wchar-subscripts] 34 | factor = getInt(expresiePtFunctie[numeFunctie], poz); | ^~~~~~~~~~~ main.cpp: In function 'int getInmultire(int*, char, int&)': main.cpp:45:27: warning: array subscript has type 'char' [-Wchar-subscripts] 45 | while(expresiePtFunctie[numeFunctie][poz] == '*'){ | ^~~~~~~~~~~ main.cpp: In function 'int resolveEcuation(int*, char, int&)': main.cpp:56:27: warning: array subscript has type 'char' [-Wchar-subscripts] 56 | while(expresiePtFunctie[numeFunctie][poz] == '-' or expresiePtFunctie[numeFunctie][poz] == '+'){ | ^~~~~~~~~~~ main.cpp:56:73: warning: array subscript has type 'char' [-Wchar-subscripts] 56 | while(expresiePtFunctie[numeFunctie][poz] == '-' or expresiePtFunctie[numeFunctie][poz] == '+'){ | ^~~~~~~~~~~ main.cpp:57:35: warning: array subscript has type 'char' [-Wchar-subscripts] 57 | char semn = expresiePtFunctie[numeFunctie][poz]; | ^~~~~~~~~~~ main.cpp:66:24: warning: array subscript has type 'char' [-Wchar-subscripts] 66 | if(expresiePtFunctie[numeFunctie][poz] == ')') | ^~~~~~~~~~~ main.cpp: In function 'int evalFunctie(int&)': main.cpp:73:38: warning: array subscript has type 'char' [-Wchar-subscripts] 73 | int nrFactori = nrTermeniPtFunctie[numeFunctie]; | ^~~~~~~~~~~ main.cpp:81:55: warning: array subscript has type 'char' [-Wchar-subscripts] 81 | valFactor[i] = valoareVariabile[functiaInit[poz]]; | ^ main.cpp:77:10: warning: unused variable 'chCur' [-Wunused-variable] 77 | char chCur = functiaInit[poz]; | ^~~~~ main.cpp: In function 'int main()': main.cpp:102:24: warning: array subscript has type 'char' [-Wchar-subscripts] 102 | valoareVariabile[varCur] = stoi(s); | ^~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbOK10
30ms303kbOK10
40ms303kbOK10
50ms303kbOK10
60ms303kbOK10
70ms303kbOK10
80ms303kbOK10
90ms303kbOK10
100ms303kbOK10
Punctaj total100

Ceva nu functioneaza?