Borderou de evaluare (job #2836969)

Utilizator Theodor17Pirnog Theodor Ioan Theodor17 Data 21 ianuarie 2022 12:26:14
Problema Logic Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'bool termen()': main.cpp:75:34: warning: array subscript has type 'char' [-Wchar-subscripts] 75 | return c[poz_litere[a[poz]]] - 48; | ~~~~~^ main.cpp:76:32: warning: array subscript has type 'char' [-Wchar-subscripts] 76 | return !(c[poz_litere[a[poz]]] - 48); | ~~~~~^ main.cpp: In function 'int main()': main.cpp:104:31: warning: array subscript has type 'char' [-Wchar-subscripts] 104 | poz_litere[a[j]] = litere.size() - 1; | ~~~^ main.cpp:106:31: warning: array subscript has type 'char' [-Wchar-subscripts] 106 | verificare[a[j]]++; | ~~~^ main.cpp:116:31: warning: array subscript has type 'char' [-Wchar-subscripts] 116 | poz_litere[b[j]] = litere.size() - 1; | ~~~^ main.cpp:118:31: warning: array subscript has type 'char' [-Wchar-subscripts] 118 | verificare[b[j]]++; | ~~~^ main.cpp:130:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 130 | for(int j = 0; j < litere.size(); j++) | ~~^~~~~~~~~~~~~~~ main.cpp:92:28: warning: array subscript 256 is above array bounds of 'int [256]' [-Warray-bounds] 92 | poz_litere[(1 << 8)] = {0}; | ~~~~~~~~~~~~~~~~~~~^ main.cpp:17:5: note: while referencing 'poz_litere' 17 | int poz_litere[(1 << 8)]; | ^~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbIncorect0
259ms200kbKilled by Signal 110
3103ms200kbTime limit exceeded0
4103ms200kbTime limit exceeded0
51ms184kbKilled by Signal 110
62ms184kbKilled by Signal 110
7103ms200kbTime limit exceeded0
8103ms200kbTime limit exceeded0
911ms200kbKilled by Signal 110
10103ms217kbTime limit exceeded0
Punctaj total0

Ceva nu functioneaza?