fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. struct a
  4. {
  5. char *b = NULL;
  6. } x;
  7. int main()
  8. {
  9.  
  10. int razmer = 0;
  11. scanf("%i ", &razmer);
  12. razmer = razmer + 5;
  13. x.b = (char*)calloc(razmer, sizeof(char));
  14. for (int a = 0; a < razmer; a++)
  15. {
  16. for (int i = 0; i < 5; i++)
  17. {
  18. scanf("%c", &x.b[i][a]);
  19. }
  20. }
  21. for (int a = 0; a < razmer; a++)
  22. {
  23. for (int i = 0; i < 5; i++)
  24. {
  25. printf("%c", x.b[i][a]);
  26. }
  27. }
  28. return 0;
  29. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:5:10: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘=’ token
  char *b = NULL;
          ^
prog.c: In function ‘main’:
prog.c:13:3: error: ‘struct a’ has no member named ‘b’
  x.b = (char*)calloc(razmer, sizeof(char));
   ^
prog.c:18:18: error: ‘struct a’ has no member named ‘b’
    scanf("%c", &x.b[i][a]);
                  ^
prog.c:25:18: error: ‘struct a’ has no member named ‘b’
    printf("%c", x.b[i][a]);
                  ^
stdout
Standard output is empty