Borderou de evaluare (job #2787732)

Utilizator MindralexMindrila Alex Mindralex Data 23 octombrie 2021 22:22:43
Problema Joben Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void prelucrare(char*, int, int*, int&)': main.cpp:19:19: warning: array subscript has type 'char' [-Wchar-subscripts] 19 | if (carint[c[i]] == 0) | ~~~^ main.cpp:20:17: warning: array subscript has type 'char' [-Wchar-subscripts] 20 | carint[c[i]] = a; | ~~~^ main.cpp:21:21: warning: array subscript has type 'char' [-Wchar-subscripts] 21 | frecv[carint[c[i]]]++; | ~~~^ main.cpp: In function 'int main()': main.cpp:41:43: warning: unused variable 'i' [-Wunused-variable] 41 | int n1 = strlen(c1), n2 = strlen(c2), i; | ^ main.cpp: In function 'void prelucrare(char*, int, int*, int&)': main.cpp:26:16: warning: iteration 100 invokes undefined behavior [-Waggressive-loop-optimizations] 26 | if (frecv[i] > 0) | ~~~~~~~^ main.cpp:25:21: note: within this loop 25 | for (int i = 1; i < 102; i++) | ~~^~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms184kbIncorect0
21ms184kbIncorect0
31ms184kbIncorect0
43ms184kbKilled by Signal 110
51ms184kbKilled by Signal 110
648ms462kbIncorect0
753ms471kbKilled by Signal 110
873ms438kbIncorect0
951ms397kbKilled by Signal 110
106ms438kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?