Borderou de evaluare (job #3148918)

Utilizator AndreidreiGresoiu Liviu-Andrei Andreidrei Data 5 septembrie 2023 09:09:37
Problema Ghicit Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:29:25: warning: array subscript has type 'char' [-Wchar-subscripts] 29 | for(i=0;i<n;i++)++p[s[i]],su[0][i]=s[i]; | ^ main.cpp:34:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'll' {aka 'long long int'} [-Wformat=] 34 | for(i=0;i<n;i++)printf("%d ",su[0][i]);cout<<'\n'; | ~^ ~~~~~~~~ | | | | int ll {aka long long int} | %lld main.cpp:34:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 34 | for(i=0;i<n;i++)printf("%d ",su[0][i]);cout<<'\n'; | ^~~ main.cpp:34:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 34 | for(i=0;i<n;i++)printf("%d ",su[0][i]);cout<<'\n'; | ^~~~ main.cpp:42:10: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 42 | {for(auto j:v[i]) | ^~~ main.cpp:43:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 43 | c[p[su[k][j]]++]=j;v[i].clear();} | ^ main.cpp:53:30: warning: format '%d' expects argument of type 'int', but argument 2 has type 'll' {aka 'long long int'} [-Wformat=] 53 | for(i=0;i<n;i++)printf("%d ",su[k+1][i]);cout<<'\n'; | ~^ ~~~~~~~~~~ | | | | int ll {aka long long int} | %lld main.cpp:53:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 53 | for(i=0;i<n;i++)printf("%d ",su[k+1][i]);cout<<'\n'; | ^~~ main.cpp:53:46: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 53 | for(i=0;i<n;i++)printf("%d ",su[k+1][i]);cout<<'\n'; | ^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms1343kbOK5
27ms2654kbOK5
37ms2654kbOK5
434ms8364kbOK5
544ms11153kbOK5
639ms11599kbOK5
744ms12787kbOK5
849ms11780kbOK5
954ms14696kbOK5
1053ms14163kbOK5
1154ms13864kbOK5
121ms1343kbOK5
131ms1347kbOK5
142ms1343kbOK5
152ms1343kbOK5
169ms3444kbOK5
179ms3702kbOK5
186ms2654kbOK5
197ms2654kbOK5
207ms2654kbOK5
Punctaj total100

Ceva nu functioneaza?