Borderou de evaluare (job #756396)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Dvorak (clasa a 10-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 21 ian. 2024 11:04:16 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:24:11: warning: array subscript has type 'char' [-Wchar-subscripts]
24 | c[k]=a[i];
| ^
main.cpp:33:50: warning: array subscript has type 'char' [-Wchar-subscripts]
33 | for(j=st;j<=dr;j++)sir[j-1]=c[sir[j-1]];
| ~~~~~~~^
main.cpp:38:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
38 | if(strstr(sir,s)!='\0')g<<"Da"<<'\n';
| ~~~~~~~~~~~~~^~~~~~