Borderou de evaluare (job #2974999)

Utilizator DariusM17Murgoci Darius DariusM17 Data 5 februarie 2023 01:06:38
Problema Artifact Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void bkt(char)': main.cpp:21:14: warning: array subscript has type 'char' [-Wchar-subscripts] 21 | if(apare[k]) | ^ main.cpp:23:22: warning: array subscript has type 'char' [-Wchar-subscripts] 23 | for(int i=pc[k]; i<=9; ++i) | ^ main.cpp:27:19: warning: array subscript has type 'char' [-Wchar-subscripts] 27 | x[k]=i,f[i]=1 ; | ^ main.cpp: In function 'int main()': main.cpp:43:31: warning: array subscript has type 'char' [-Wchar-subscripts] 43 | if(s.size()>1) pc[s[0]]=1 ; | ^ main.cpp:45:52: warning: array subscript has type 'char' [-Wchar-subscripts] 45 | for(int j=s.size()-1; j>=0; --j) apare[s[j]]=1,v[s[j]]+=d,d*=10 ; | ^ main.cpp:45:62: warning: array subscript has type 'char' [-Wchar-subscripts] 45 | for(int j=s.size()-1; j>=0; --j) apare[s[j]]=1,v[s[j]]+=d,d*=10 ; | ^ main.cpp:50:31: warning: array subscript has type 'char' [-Wchar-subscripts] 50 | if(s.size()>1) pc[s[0]]=1 ; | ^ main.cpp:52:52: warning: array subscript has type 'char' [-Wchar-subscripts] 52 | for(int j=s.size()-1; j>=0; --j) apare[s[j]]=1,v[s[j]]-=d,d*=10 ; | ^ main.cpp:52:62: warning: array subscript has type 'char' [-Wchar-subscripts] 52 | for(int j=s.size()-1; j>=0; --j) apare[s[j]]=1,v[s[j]]-=d,d*=10 ; | ^ main.cpp: In function 'void verif()': main.cpp:15:19: warning: array subscript 65 is above array bounds of 'bool [27]' [-Warray-bounds] 15 | if(apare[i]) sum+=v[i]*x[i] ; | ~~~~~~~^ main.cpp:8:6: note: while referencing 'apare' 8 | bool apare[SIGMA],f[SIGMA]; | ^~~~~ main.cpp:15:30: warning: array subscript 65 is above array bounds of 'long long int [27]' [-Warray-bounds] 15 | if(apare[i]) sum+=v[i]*x[i] ; | ~~~^ main.cpp:6:11: note: while referencing 'v' 6 | long long v[SIGMA],x[SIGMA],pc[SIGMA],cnt; | ^ main.cpp:15:35: warning: array subscript 65 is above array bounds of 'long long int [27]' [-Warray-bounds] 15 | if(apare[i]) sum+=v[i]*x[i] ; | ~~~^ main.cpp:6:20: note: while referencing 'x' 6 | long long v[SIGMA],x[SIGMA],pc[SIGMA],cnt; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
118ms184kbKilled by Signal 110
292ms184kbKilled by Signal 110
385ms184kbKilled by Signal 110
484ms184kbKilled by Signal 110
583ms184kbKilled by Signal 110
614ms184kbKilled by Signal 110
782ms184kbKilled by Signal 110
888ms184kbKilled by Signal 110
984ms184kbKilled by Signal 110
10272ms184kbKilled by Signal 110
11112ms184kbKilled by Signal 110
120ms184kbKilled by Signal 110
130ms184kbKilled by Signal 110
1499ms184kbKilled by Signal 110
1512ms184kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?