Pagini recente » Borderou de evaluare (job #3243157) | Borderou de evaluare (job #3245730) | Borderou de evaluare (job #3244049) | Borderou de evaluare (job #3209973) | Borderou de evaluare (job #3213326)
Borderou de evaluare (job #3213326)
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 |
1 | 0ms | 303kb | OK | 10 |
2 | 0ms | 303kb | OK | 10 |
3 | 0ms | 303kb | OK | 10 |
4 | 0ms | 303kb | OK | 10 |
5 | 0ms | 303kb | OK | 10 |
6 | 0ms | 303kb | OK | 10 |
7 | 0ms | 303kb | OK | 10 |
8 | 0ms | 303kb | OK | 10 |
9 | 0ms | 303kb | OK | 10 |
10 | 0ms | 303kb | OK | 10 |
Punctaj total | 100 |