fork download
  1. #include <stdio.h>
  2. #include<string.h>
  3. void main() {
  4. char sen[100];
  5. char cracker shit[50];
  6. int i=0;
  7. scanf("%s",&sen);
  8. str[i]=sen;
  9. strrem(str[i]==#cracker,shit));// your code goes here
  10. printf("%s",sen);
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
She called her friend as a cracker and said her talks are shit #cracker shit
compilation info
prog.c:3:7: warning: return type of 'main' is not 'int' [-Wmain]
  void main() { 
       ^
prog.c: In function 'main':
prog.c:5:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'shit'
    char cracker shit[50];
                 ^
prog.c:5:17: error: 'shit' undeclared (first use in this function)
prog.c:5:17: note: each undeclared identifier is reported only once for each function it appears in
prog.c:7:10: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[100]' [-Wformat=]
    scanf("%s",&sen);
          ^
prog.c:8:4: error: 'str' undeclared (first use in this function)
    str[i]=sen;
    ^
prog.c:9:4: warning: implicit declaration of function 'strrem' [-Wimplicit-function-declaration]
    strrem(str[i]==#cracker,shit));// your code goes here 
    ^
prog.c:9:19: error: stray '#' in program
    strrem(str[i]==#cracker,shit));// your code goes here 
                   ^
prog.c:9:20: error: 'cracker' undeclared (first use in this function)
    strrem(str[i]==#cracker,shit));// your code goes here 
                    ^
prog.c:9:33: error: expected ';' before ')' token
    strrem(str[i]==#cracker,shit));// your code goes here 
                                 ^
prog.c:9:33: error: expected statement before ')' token
prog.c:6:8: warning: variable 'i' set but not used [-Wunused-but-set-variable]
    int i=0;
        ^
stdout
Standard output is empty