fork download
  1. #include <stdio.h>
  2. #include <stdbool.h>
  3.  
  4. int main()
  5. {
  6.  
  7.  
  8. char A[100];
  9. char B[100];
  10. char P[100];
  11. bool L = true;
  12.  
  13. if (L == true)
  14. {
  15. printf("asdasfdasf\n");
  16. }
  17.  
  18. scanf("%s ", &A);
  19. scanf("%s ", &B);
  20.  
  21. while (scanf("%s ", &P) != EOF)
  22. {
  23. if (strcmp(A, P) == 0)
  24. {
  25. printf("%s ", B);
  26. }
  27.  
  28. else
  29. {
  30. printf("%s ", P);
  31. }
  32. }
  33. }
  34.  
Success #stdin #stdout 0s 4552KB
stdin
Standard input is empty
stdout
asdasfdasf