fork(1) download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. char s1,s2;
  5. int n;
  6. char d;
  7. printf("введите первую строку\n");
  8. scanf("%s",&s1);
  9. printf("введите вторую строку\n");
  10. scanf("%s",&s2);
  11. int ctartap(char s1[],char s2[],int d)
  12. {
  13. int h,p,u=0;
  14. for(h=p=0;s2[p]=s1[h]=!'\0';h++)
  15. p++;
  16. d=s2[p];
  17. {
  18. if(s1[h]=d)
  19. {
  20.  
  21. s1[u++]=p;
  22. }
  23. else{
  24. s1[u++]=-1;
  25. ;
  26. }
  27. }
  28. return s1[u];
  29. for((s1[u]=getchar())!=EOF)
  30. {
  31.  
  32.  
  33. printf("%d",s1[u]);
  34. }
  35. }
  36. }
  37.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:12:1: error: function definition is not allowed here
{
^
1 error generated.
stdout
Standard output is empty