Borderou de evaluare (job #2710663)

Utilizator somethingforeveryoneMatei Gabriel somethingforeveryone Data 22 februarie 2021 20:32:37
Problema Char Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:12:15: warning: array subscript has type 'char' [-Wchar-subscripts] f[v[j]]++; ^ main.cpp:14:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(i='a'; i<='z'; i++) ^~~ main.cpp:20:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' cin>>k; ^~~ main.cpp:30:27: warning: array subscript has type 'char' [-Wchar-subscripts] o+=f[v1[j]]; ^ main.cpp:34:18: warning: array subscript has type 'char' [-Wchar-subscripts] f[ v1[i] ] = a[i]; ^ main.cpp:33:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (i=1;i<=k;i++) ^~~ main.cpp:35:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for (i=1;i<=n;i++) { ^~~ main.cpp:36:28: warning: array subscript has type 'char' [-Wchar-subscripts] L[i] = i - f[ v[i] ]; ^ main.cpp:39:28: warning: array subscript has type 'char' [-Wchar-subscripts] R[i] = i + f[ v[i] ]; ^ main.cpp:52:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (i=2;i<=n;i++) ^~~ main.cpp:57:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' cout<<nr; ^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
13ms131kbOK10
23ms131kbOK10
33ms131kbOK10
43ms131kbOK10
53ms131kbOK10
63ms131kbOK10
74ms131kbOK10
865ms262kbOK10
985ms262kbOK10
1092ms262kbOK10
Punctaj total100

Ceva nu functioneaza?