Borderou de evaluare (job #3036368)

Utilizator Remus.RughinisRemus Rughinis Remus.Rughinis Data 24 martie 2023 11:38:11
Problema Vip Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:28:9: warning: array subscript has type 'char' [-Wchar-subscripts] 28 | a[ch] ++; | ^~ main.cpp:34:9: warning: array subscript has type 'char' [-Wchar-subscripts] 34 | b[ch] ++; | ^~ main.cpp:75:17: warning: array subscript has type 'char' [-Wchar-subscripts] 75 | if(a[v[j]] > 0 && b[i] > 0){ | ~~~^ main.cpp:78:16: warning: array subscript has type 'char' [-Wchar-subscripts] 78 | a[v[j]] --; | ~~~^ main.cpp:80:24: warning: array subscript has type 'char' [-Wchar-subscripts] 80 | } else if(a[v[j]] > 0 && b[i] == 0){ | ~~~^ main.cpp:85:18: warning: array subscript has type 'char' [-Wchar-subscripts] 85 | a[v[j]] --; | ~~~^ main.cpp:94:24: warning: array subscript has type 'char' [-Wchar-subscripts] 94 | } else if(a[v[j]] == 0 && b[i] > 0){ | ~~~^ main.cpp:100:18: warning: array subscript has type 'char' [-Wchar-subscripts] 100 | c[v[j]] --; | ~~~^ main.cpp:101:18: warning: array subscript has type 'char' [-Wchar-subscripts] 101 | b[v[j]] ++; | ~~~^ main.cpp:105:18: warning: array subscript has type 'char' [-Wchar-subscripts] 105 | c[v[j]] --; | ~~~^ main.cpp:108:24: warning: array subscript has type 'char' [-Wchar-subscripts] 108 | } else if(a[v[j]] == 0 && b[i] == 0){ | ~~~^ main.cpp:114:18: warning: array subscript has type 'char' [-Wchar-subscripts] 114 | c[v[j]] --; | ~~~^ main.cpp:115:18: warning: array subscript has type 'char' [-Wchar-subscripts] 115 | b[v[j]] ++; | ~~~^ main.cpp:119:18: warning: array subscript has type 'char' [-Wchar-subscripts] 119 | c[v[j]] --; | ~~~^ main.cpp:74:13: warning: unused variable 'cost' [-Wunused-variable] 74 | int cost = 0; | ^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbNu este o anagrama.0
20ms303kbLungimea sirului nu este buna.0
30ms303kbLungimea sirului nu este buna.0
419ms1019kbLungimea sirului nu este buna.0
50ms303kbNu este o anagrama.0
62ms303kbNu este o anagrama.0
719ms999kbNu este o anagrama.0
84ms819kbNu este o anagrama.0
99ms1421kbNu este o anagrama.0
109ms1081kbLungimea sirului nu este buna.0
115ms819kbNu este o anagrama.0
129ms1343kbIncorect.0
Punctaj total0

Ceva nu functioneaza?