fork download
  1. #include <stdio.h>
  2. #include<string.h>
  3.  
  4. int main()
  5. {
  6. Char s[80]={"мама мыла раму"},sym='a';
  7. int i ;
  8. for(i=0 i<strlen(s);i++)
  9. if (s[i]=='а')
  10. s[i]=='к';
  11. puts(s);
  12. return0
  13. }
  14.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:6:5: error: unknown type name ‘Char’; did you mean ‘char’?
     Char s[80]={"мама мыла раму"},sym='a';
     ^~~~
     char
prog.c:6:16: error: wide character array initialized from non-wide string
     Char s[80]={"мама мыла раму"},sym='a';
                ^
prog.c:8:12: error: expected ‘;’ before ‘i’
     for(i=0 i<strlen(s);i++)
            ^~
            ;
prog.c:8:28: error: expected ‘;’ before ‘)’ token
     for(i=0 i<strlen(s);i++)
                            ^
                            ;
prog.c:9:15: warning: multi-character character constant [-Wmultichar]
     if (s[i]=='а')
               ^~~~
prog.c:10:11: warning: multi-character character constant [-Wmultichar]
     s[i]=='к';
           ^~~~
prog.c:10:9: warning: statement with no effect [-Wunused-value]
     s[i]=='к';
     ~~~~^~~~~~
prog.c:11:10: warning: passing argument 1 of ‘puts’ from incompatible pointer type [-Wincompatible-pointer-types]
     puts(s);
          ^
In file included from prog.c:1:
/usr/include/stdio.h:632:30: note: expected ‘const char *’ but argument is of type ‘int *’
 extern int puts (const char *__s);
                  ~~~~~~~~~~~~^~~
prog.c:12:5: error: ‘return0’ undeclared (first use in this function)
     return0
     ^~~~~~~
prog.c:12:5: note: each undeclared identifier is reported only once for each function it appears in
prog.c:12:12: error: expected ‘;’ before ‘}’ token
     return0
            ^
            ;
 }
 ~           
prog.c:6:47: warning: unused variable ‘sym’ [-Wunused-variable]
     Char s[80]={"мама мыла раму"},sym='a';
                                               ^~~
stdout
Standard output is empty