Borderou de evaluare (job #2941860)

Utilizator Nitoi_BogdanNitoi Andrei-Bogdan Nitoi_Bogdan Data 18 noiembrie 2022 14:35:25
Problema Evaluarea unei expresii Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 80

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:39:21: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 39 | for(int i = 0; i<strlen(s); i++) | ~^~~~~~~~~~ main.cpp:43:21: warning: array subscript has type 'char' [-Wchar-subscripts] 43 | stivaop[++kop] = '('; | ^~~~~ main.cpp:48:28: warning: array subscript has type 'char' [-Wchar-subscripts] 48 | {while(stivaop[kop] != '(') | ^~~ main.cpp:50:35: warning: array subscript has type 'char' [-Wchar-subscripts] 50 | char op = stivaop[kop]; | ^~~ main.cpp:62:43: warning: array subscript has type 'char' [-Wchar-subscripts] 62 | while(kop > 0 && prior[s[i]]<=prior[stivaop[kop]]) | ~~~^ main.cpp:62:61: warning: array subscript has type 'char' [-Wchar-subscripts] 62 | while(kop > 0 && prior[s[i]]<=prior[stivaop[kop]]) | ^~~ main.cpp:62:64: warning: array subscript has type 'char' [-Wchar-subscripts] 62 | while(kop > 0 && prior[s[i]]<=prior[stivaop[kop]]) | ~~~~~~~~~~~^ main.cpp:64:35: warning: array subscript has type 'char' [-Wchar-subscripts] 64 | char op = stivaop[kop]; | ^~~ main.cpp:71:25: warning: array subscript has type 'char' [-Wchar-subscripts] 71 | stivaop[++kop] = s[i]; | ^~~~~ main.cpp:88:27: warning: array subscript has type 'char' [-Wchar-subscripts] 88 | char op = stivaop[kop]; | ^~~ main.cpp: In function 'int evaluare(int, int, int)': main.cpp:27:1: warning: control reaches end of non-void function [-Wreturn-type] 27 | } | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms184kbOK10
20ms184kbOK10
30ms184kbOK10
40ms184kbOK10
50ms184kbOK10
61ms184kbOK10
70ms184kbOK10
80ms184kbOK10
950ms315kbTime limit exceeded0
1050ms315kbTime limit exceeded0
Punctaj total80

Ceva nu functioneaza?