fork download
  1. Сишечка, многомерные массивы.
  2.  
  3. //буква в виде массива
  4. const int8_t o_letter[] = {1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, -1};
  5.  
  6. //слово в виде массива букв (массива ссылок)
  7. const int8_t *abs_word[] = {o_letter};
  8.  
  9. //Ссылка на этот многомерный массив. Верно ли??
  10. int8_t *current_word;
  11. current_word = abs_word;
  12.  
  13. //Получение содержимого буквы. Верно ли?
  14. int8_t *current_letter;
  15. current_letter = &current_word[0];
  16.  
  17. int8_t current_sign;
  18. current_sign = current_letter[0];
  19.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:1: error: stray '\320' in program
 Сишечка, многомерные массивы.
 ^
prog.c:1:1: error: stray '\241' in program
prog.c:1:1: error: stray '\320' in program
prog.c:1:1: error: stray '\270' in program
prog.c:1:1: error: stray '\321' in program
prog.c:1:1: error: stray '\210' in program
prog.c:1:1: error: stray '\320' in program
prog.c:1:1: error: stray '\265' in program
prog.c:1:1: error: stray '\321' in program
prog.c:1:1: error: stray '\207' in program
prog.c:1:1: error: stray '\320' in program
prog.c:1:1: error: stray '\272' in program
prog.c:1:1: error: stray '\320' in program
prog.c:1:1: error: stray '\260' in program
prog.c:1:15: error: expected identifier or '(' before ',' token
 Сишечка, многомерные массивы.
               ^
prog.c:1:15: error: stray '\320' in program
prog.c:1:15: error: stray '\274' in program
prog.c:1:15: error: stray '\320' in program
prog.c:1:15: error: stray '\275' in program
prog.c:1:15: error: stray '\320' in program
prog.c:1:15: error: stray '\276' in program
prog.c:1:15: error: stray '\320' in program
prog.c:1:15: error: stray '\263' in program
prog.c:1:15: error: stray '\320' in program
prog.c:1:15: error: stray '\276' in program
prog.c:1:15: error: stray '\320' in program
prog.c:1:15: error: stray '\274' in program
prog.c:1:15: error: stray '\320' in program
prog.c:1:15: error: stray '\265' in program
prog.c:1:15: error: stray '\321' in program
prog.c:1:15: error: stray '\200' in program
prog.c:1:15: error: stray '\320' in program
prog.c:1:15: error: stray '\275' in program
prog.c:1:15: error: stray '\321' in program
prog.c:1:15: error: stray '\213' in program
prog.c:1:15: error: stray '\320' in program
prog.c:1:15: error: stray '\265' in program
prog.c:1:15: error: stray '\320' in program
prog.c:1:15: error: stray '\274' in program
prog.c:1:15: error: stray '\320' in program
prog.c:1:15: error: stray '\260' in program
prog.c:1:15: error: stray '\321' in program
prog.c:1:15: error: stray '\201' in program
prog.c:1:15: error: stray '\321' in program
prog.c:1:15: error: stray '\201' in program
prog.c:1:15: error: stray '\320' in program
prog.c:1:15: error: stray '\270' in program
prog.c:1:15: error: stray '\320' in program
prog.c:1:15: error: stray '\262' in program
prog.c:1:15: error: stray '\321' in program
prog.c:1:15: error: stray '\213' in program
prog.c:7:7: error: unknown type name 'int8_t'
 const int8_t *abs_word[] = {o_letter};
       ^
prog.c:7:29: error: 'o_letter' undeclared here (not in a function)
 const int8_t *abs_word[] = {o_letter};
                             ^
prog.c:10:1: error: unknown type name 'int8_t'
 int8_t *current_word;
 ^
prog.c:11:1: warning: data definition has no type or storage class
 current_word = abs_word;
 ^
prog.c:11:1: warning: type defaults to 'int' in declaration of 'current_word' [-Wimplicit-int]
prog.c:11:1: error: conflicting types for 'current_word'
prog.c:10:9: note: previous declaration of 'current_word' was here
 int8_t *current_word;
         ^
prog.c:11:16: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
 current_word = abs_word;
                ^
prog.c:14:1: error: unknown type name 'int8_t'
 int8_t *current_letter;
 ^
prog.c:15:1: warning: data definition has no type or storage class
 current_letter = &current_word[0];
 ^
prog.c:15:1: warning: type defaults to 'int' in declaration of 'current_letter' [-Wimplicit-int]
prog.c:15:1: error: conflicting types for 'current_letter'
prog.c:14:9: note: previous declaration of 'current_letter' was here
 int8_t *current_letter;
         ^
prog.c:15:31: error: subscripted value is neither array nor pointer nor vector
 current_letter = &current_word[0];
                               ^
prog.c:15:18: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
 current_letter = &current_word[0];
                  ^
prog.c:15:18: error: initializer element is not constant
prog.c:17:1: error: unknown type name 'int8_t'
 int8_t current_sign;
 ^
prog.c:18:1: warning: data definition has no type or storage class
 current_sign = current_letter[0];
 ^
prog.c:18:1: warning: type defaults to 'int' in declaration of 'current_sign' [-Wimplicit-int]
prog.c:18:30: error: subscripted value is neither array nor pointer nor vector
 current_sign = current_letter[0];
                              ^
prog.c:18:16: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
 current_sign = current_letter[0];
                ^
prog.c:18:16: error: initializer element is not constant
stdout
Standard output is empty