fork(5) download
  1. 問題文:1次元配列s[MAX]と変数topを用いてスタックの基本操作を行うプログラムを実現したい。まず、スタックに文字をpush-downする関数void push(char c, char*s, int*top);を作成せよ。これが正しく動作することをpush-down動作の前と後、それぞれ内容を関数print_stak_aryを用いて出力する事で確認せよ。ここでMAXは配列の大きさを与える定数である。
  2.  
  3. 以下自分の書いたコードですが、どうすればいいかわかりませんでした。
  4. #include<stdio.h>
  5. #define MAX 10
  6.  
  7. void push(char c, char *s, int *top);
  8. void print_stack_ary(char *s, int top);
  9.  
  10. int main()
  11. {
  12. char s[MAX];
  13. char c = 'f';
  14. int top = 5;
  15.  
  16.  
  17. s[0] = 'a';
  18. s[1] = 'b';
  19. s[2] = 'c';
  20. s[3] = 'd';
  21. s[4] = 'e';
  22.  
  23.  
  24.  
  25.  
  26.  
  27. push(char c, char *s ,int *top);
  28.  
  29.  
  30. return 0;
  31.  
  32. }
  33.  
  34. void push(char c, char *s, int *top)
  35. {
  36.  
  37.  
  38. print_stack_ary(char *s, int top);
  39.  
  40. s[top] = 'f'
  41. top++;
  42.  
  43. print_stack_ary(char *s, int top);
  44.  
  45.  
  46.  
  47.  
  48.  
  49. }
  50.  
  51.  
  52. void print_stack_ary(char *s, int top)
  53. {
  54.  
  55.  
  56. for(top =5; top >= 0; top--)
  57. {
  58.  
  59. printf("%c\n",s[top-1]);
  60.  
  61.  
  62. }
  63.  
  64.  
  65.  
  66.  
  67. }
  68.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1: error: stray ‘\345’ in program
prog.c:1: error: stray ‘\225’ in program
prog.c:1: error: stray ‘\217’ in program
prog.c:1: error: stray ‘\351’ in program
prog.c:1: error: stray ‘\241’ in program
prog.c:1: error: stray ‘\214’ in program
prog.c:1: error: stray ‘\346’ in program
prog.c:1: error: stray ‘\226’ in program
prog.c:1: error: stray ‘\207’ in program
prog.c:1: error: stray ‘\357’ in program
prog.c:1: error: stray ‘\274’ in program
prog.c:1: error: stray ‘\232’ in program
prog.c:1: error: expected identifier or ‘(’ before numeric constant
prog.c:1: error: stray ‘\346’ in program
prog.c:1: error: stray ‘\254’ in program
prog.c:1: error: stray ‘\241’ in program
prog.c:1: error: stray ‘\345’ in program
prog.c:1: error: stray ‘\205’ in program
prog.c:1: error: stray ‘\203’ in program
prog.c:1: error: stray ‘\351’ in program
prog.c:1: error: stray ‘\205’ in program
prog.c:1: error: stray ‘\215’ in program
prog.c:1: error: stray ‘\345’ in program
prog.c:1: error: stray ‘\210’ in program
prog.c:1: error: stray ‘\227’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\250’ in program
prog.c:1: error: stray ‘\345’ in program
prog.c:1: error: stray ‘\244’ in program
prog.c:1: error: stray ‘\211’ in program
prog.c:1: error: stray ‘\346’ in program
prog.c:1: error: stray ‘\225’ in program
prog.c:1: error: stray ‘\260’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\222’ in program
prog.c:1: error: stray ‘\347’ in program
prog.c:1: error: stray ‘\224’ in program
prog.c:1: error: stray ‘\250’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\204’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\246’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\271’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\277’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\203’ in program
prog.c:1: error: stray ‘\203’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\257’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\256’ in program
prog.c:1: error: stray ‘\345’ in program
prog.c:1: error: stray ‘\237’ in program
prog.c:1: error: stray ‘\272’ in program
prog.c:1: error: stray ‘\346’ in program
prog.c:1: error: stray ‘\234’ in program
prog.c:1: error: stray ‘\254’ in program
prog.c:1: error: stray ‘\346’ in program
prog.c:1: error: stray ‘\223’ in program
prog.c:1: error: stray ‘\215’ in program
prog.c:1: error: stray ‘\344’ in program
prog.c:1: error: stray ‘\275’ in program
prog.c:1: error: stray ‘\234’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\222’ in program
prog.c:1: error: stray ‘\350’ in program
prog.c:1: error: stray ‘\241’ in program
prog.c:1: error: stray ‘\214’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\206’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\203’ in program
prog.c:1: error: stray ‘\227’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\203’ in program
prog.c:1: error: stray ‘\255’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\260’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\203’ in program
prog.c:1: error: stray ‘\251’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\203’ in program
prog.c:1: error: stray ‘\240’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\222’ in program
prog.c:1: error: stray ‘\345’ in program
prog.c:1: error: stray ‘\256’ in program
prog.c:1: error: stray ‘\237’ in program
prog.c:1: error: stray ‘\347’ in program
prog.c:1: error: stray ‘\217’ in program
prog.c:1: error: stray ‘\276’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\227’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\237’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\204’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\200’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\276’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\232’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\200’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\271’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\277’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\203’ in program
prog.c:1: error: stray ‘\203’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\257’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\253’ in program
prog.c:1: error: stray ‘\346’ in program
prog.c:1: error: stray ‘\226’ in program
prog.c:1: error: stray ‘\207’ in program
prog.c:1: error: stray ‘\345’ in program
prog.c:1: error: stray ‘\255’ in program
prog.c:1: error: stray ‘\227’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\222’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\231’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\213’ in program
prog.c:1: error: stray ‘\351’ in program
prog.c:1: error: stray ‘\226’ in program
prog.c:1: error: stray ‘\242’ in program
prog.c:1: error: stray ‘\346’ in program
prog.c:1: error: stray ‘\225’ in program
prog.c:1: error: stray ‘\260’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\222’ in program
prog.c:1: error: stray ‘\344’ in program
prog.c:1: error: stray ‘\275’ in program
prog.c:1: error: stray ‘\234’ in program
prog.c:1: error: stray ‘\346’ in program
prog.c:1: error: stray ‘\210’ in program
prog.c:1: error: stray ‘\220’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\233’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\210’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\200’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\223’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\214’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\214’ in program
prog.c:1: error: stray ‘\346’ in program
prog.c:1: error: stray ‘\255’ in program
prog.c:1: error: stray ‘\243’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\227’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\217’ in program
prog.c:1: error: stray ‘\345’ in program
prog.c:1: error: stray ‘\213’ in program
prog.c:1: error: stray ‘\225’ in program
prog.c:1: error: stray ‘\344’ in program
prog.c:1: error: stray ‘\275’ in program
prog.c:1: error: stray ‘\234’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\231’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\213’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\223’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\250’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\222’ in program
prog.c:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘-’ token
prog.c:1: error: stray ‘\345’ in program
prog.c:1: error: stray ‘\213’ in program
prog.c:1: error: stray ‘\225’ in program
prog.c:1: error: stray ‘\344’ in program
prog.c:1: error: stray ‘\275’ in program
prog.c:1: error: stray ‘\234’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\256’ in program
prog.c:1: error: stray ‘\345’ in program
prog.c:1: error: stray ‘\211’ in program
prog.c:1: error: stray ‘\215’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\250’ in program
prog.c:1: error: stray ‘\345’ in program
prog.c:1: error: stray ‘\276’ in program
prog.c:1: error: stray ‘\214’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\200’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\235’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\214’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\236’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\214’ in program
prog.c:1: error: stray ‘\345’ in program
prog.c:1: error: stray ‘\206’ in program
prog.c:1: error: stray ‘\205’ in program
prog.c:1: error: stray ‘\345’ in program
prog.c:1: error: stray ‘\256’ in program
prog.c:1: error: stray ‘\271’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\222’ in program
prog.c:1: error: stray ‘\351’ in program
prog.c:1: error: stray ‘\226’ in program
prog.c:1: error: stray ‘\242’ in program
prog.c:1: error: stray ‘\346’ in program
prog.c:1: error: stray ‘\225’ in program
prog.c:1: error: stray ‘\260’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\222’ in program
prog.c:1: error: stray ‘\347’ in program
prog.c:1: error: stray ‘\224’ in program
prog.c:1: error: stray ‘\250’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\204’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\246’ in program
prog.c:1: error: stray ‘\345’ in program
prog.c:1: error: stray ‘\207’ in program
prog.c:1: error: stray ‘\272’ in program
prog.c:1: error: stray ‘\345’ in program
prog.c:1: error: stray ‘\212’ in program
prog.c:1: error: stray ‘\233’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\231’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\213’ in program
prog.c:1: error: stray ‘\344’ in program
prog.c:1: error: stray ‘\272’ in program
prog.c:1: error: stray ‘\213’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\247’ in program
prog.c:1: error: stray ‘\347’ in program
prog.c:1: error: stray ‘\242’ in program
prog.c:1: error: stray ‘\272’ in program
prog.c:1: error: stray ‘\350’ in program
prog.c:1: error: stray ‘\252’ in program
prog.c:1: error: stray ‘\215’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\233’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\210’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\200’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\223’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\223’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\247’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\257’ in program
prog.c:1: error: stray ‘\351’ in program
prog.c:1: error: stray ‘\205’ in program
prog.c:1: error: stray ‘\215’ in program
prog.c:1: error: stray ‘\345’ in program
prog.c:1: error: stray ‘\210’ in program
prog.c:1: error: stray ‘\227’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\256’ in program
prog.c:1: error: stray ‘\345’ in program
prog.c:1: error: stray ‘\244’ in program
prog.c:1: error: stray ‘\247’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\215’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\225’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\222’ in program
prog.c:1: error: stray ‘\344’ in program
prog.c:1: error: stray ‘\270’ in program
prog.c:1: error: stray ‘\216’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\210’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\213’ in program
prog.c:1: error: stray ‘\345’ in program
prog.c:1: error: stray ‘\256’ in program
prog.c:1: error: stray ‘\232’ in program
prog.c:1: error: stray ‘\346’ in program
prog.c:1: error: stray ‘\225’ in program
prog.c:1: error: stray ‘\260’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\247’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\213’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\200’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:3: error: stray ‘\344’ in program
prog.c:3: error: stray ‘\273’ in program
prog.c:3: error: stray ‘\245’ in program
prog.c:3: error: stray ‘\344’ in program
prog.c:3: error: stray ‘\270’ in program
prog.c:3: error: stray ‘\213’ in program
prog.c:3: error: stray ‘\350’ in program
prog.c:3: error: stray ‘\207’ in program
prog.c:3: error: stray ‘\252’ in program
prog.c:3: error: stray ‘\345’ in program
prog.c:3: error: stray ‘\210’ in program
prog.c:3: error: stray ‘\206’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\201’ in program
prog.c:3: error: stray ‘\256’ in program
prog.c:3: error: stray ‘\346’ in program
prog.c:3: error: stray ‘\233’ in program
prog.c:3: error: stray ‘\270’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\201’ in program
prog.c:3: error: stray ‘\204’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\201’ in program
prog.c:3: error: stray ‘\237’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\202’ in program
prog.c:3: error: stray ‘\263’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\203’ in program
prog.c:3: error: stray ‘\274’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\203’ in program
prog.c:3: error: stray ‘\211’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\201’ in program
prog.c:3: error: stray ‘\247’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\201’ in program
prog.c:3: error: stray ‘\231’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\201’ in program
prog.c:3: error: stray ‘\214’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\200’ in program
prog.c:3: error: stray ‘\201’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\201’ in program
prog.c:3: error: stray ‘\251’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\201’ in program
prog.c:3: error: stray ‘\206’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\201’ in program
prog.c:3: error: stray ‘\231’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\202’ in program
prog.c:3: error: stray ‘\214’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\201’ in program
prog.c:3: error: stray ‘\260’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\201’ in program
prog.c:3: error: stray ‘\204’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\201’ in program
prog.c:3: error: stray ‘\204’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\201’ in program
prog.c:3: error: stray ‘\213’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\202’ in program
prog.c:3: error: stray ‘\217’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\201’ in program
prog.c:3: error: stray ‘\213’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\202’ in program
prog.c:3: error: stray ‘\212’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\201’ in program
prog.c:3: error: stray ‘\276’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\201’ in program
prog.c:3: error: stray ‘\233’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\202’ in program
prog.c:3: error: stray ‘\223’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\201’ in program
prog.c:3: error: stray ‘\247’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\201’ in program
prog.c:3: error: stray ‘\227’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\201’ in program
prog.c:3: error: stray ‘\237’ in program
prog.c:3: error: stray ‘\343’ in program
prog.c:3: error: stray ‘\200’ in program
prog.c:3: error: stray ‘\202’ in program
In file included from /usr/include/stdio.h:75,
                 from prog.c:4:
/usr/include/libio.h:332: error: expected specifier-qualifier-list before ‘size_t’
/usr/include/libio.h:364: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libio.h:373: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libio.h:493: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_IO_sgetn’
In file included from prog.c:4:
/usr/include/stdio.h:312: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:319: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:361: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:363: error: format string argument not a string type
/usr/include/stdio.h:365: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:678: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread’
/usr/include/stdio.h:684: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite’
/usr/include/stdio.h:706: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread_unlocked’
/usr/include/stdio.h:708: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite_unlocked’
In file included from /usr/include/stdio.h:906,
                 from prog.c:4:
/usr/include/bits/stdio2.h:24: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/bits/stdio2.h:26: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/bits/stdio2.h:53: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/bits/stdio2.h:54: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/bits/stdio2.h:56: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/bits/stdio2.h:57: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/bits/stdio2.h:62: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/bits/stdio2.h: In function ‘snprintf’:
/usr/include/bits/stdio2.h:65: error: ‘__n’ undeclared (first use in this function)
/usr/include/bits/stdio2.h:65: error: (Each undeclared identifier is reported only once
/usr/include/bits/stdio2.h:65: error: for each function it appears in.)
/usr/include/bits/stdio2.h: At top level:
/usr/include/bits/stdio2.h:75: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/bits/stdio2.h: In function ‘vsnprintf’:
/usr/include/bits/stdio2.h:78: error: ‘__n’ undeclared (first use in this function)
/usr/include/bits/stdio2.h: At top level:
/usr/include/bits/stdio2.h:220: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/bits/stdio2.h: In function ‘gets’:
/usr/include/bits/stdio2.h:228: error: ‘size_t’ undeclared (first use in this function)
/usr/include/bits/stdio2.h:229: error: too many arguments to function ‘__gets_chk’
/usr/include/bits/stdio2.h: At top level:
/usr/include/bits/stdio2.h:233: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/bits/stdio2.h:238: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/bits/stdio2.h: In function ‘fgets’:
/usr/include/bits/stdio2.h:247: error: ‘size_t’ undeclared (first use in this function)
/usr/include/bits/stdio2.h:250: error: too many arguments to function ‘__fgets_chk’
/usr/include/bits/stdio2.h:252: error: expected ‘)’ before ‘__n’
/usr/include/bits/stdio2.h:253: error: too many arguments to function ‘__fgets_chk_warn’
/usr/include/bits/stdio2.h: At top level:
/usr/include/bits/stdio2.h:258: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__fread_chk’
/usr/include/bits/stdio2.h:261: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__fread_alias’
/usr/include/bits/stdio2.h:265: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__fread_chk_warn’
/usr/include/bits/stdio2.h:274: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread’
/usr/include/bits/stdio2.h:319: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__fread_unlocked_chk’
/usr/include/bits/stdio2.h:322: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__fread_unlocked_alias’
/usr/include/bits/stdio2.h:326: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__fread_unlocked_chk_warn’
/usr/include/bits/stdio2.h:335: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread_unlocked’
prog.c: In function ‘main’:
prog.c:27: error: expected expression before ‘char’
prog.c:27: error: too few arguments to function ‘push’
prog.c:14: warning: unused variable ‘top’
prog.c:13: warning: unused variable ‘c’
prog.c: In function ‘push’:
prog.c:38: error: expected expression before ‘char’
prog.c:38: error: too few arguments to function ‘print_stack_ary’
prog.c:40: error: array subscript is not an integer
prog.c:41: error: expected ‘;’ before ‘top’
prog.c:43: error: expected expression before ‘char’
prog.c:43: error: too few arguments to function ‘print_stack_ary’
stdout
Standard output is empty