fork download
  1. 以下のプログラムをコンパイルし、実行したところ、次のような結果が表示された。
  2. 下記の関数定義部分を補いなさい。
  3.  
  4. gcc test.c
  5. ./a.out
  6. abc def
  7. answer = defabc
  8.  
  9. -------------------以下ソースコード-------------------------
  10.  
  11. #include<stdio.h>
  12.  
  13. void stradd(char A[], char B[]);
  14.  
  15. int main(){
  16. char str1[100],str2[100];
  17. scanf("%s",str1);
  18. scanf("%s",str2);
  19. stradd(str1,str2);
  20. printf("answer = %s\n",str2);
  21. }
  22.  
  23. void stradd(char A[], char B[]){
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33. }
  34.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1: error: stray ‘\344’ in program
prog.c:1: error: stray ‘\273’ in program
prog.c:1: error: stray ‘\245’ in program
prog.c:1: error: stray ‘\344’ in program
prog.c:1: error: stray ‘\270’ 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 ‘\256’ 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 ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\263’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\203’ in program
prog.c:1: error: stray ‘\263’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\203’ in program
prog.c:1: error: stray ‘\221’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:1: error: stray ‘\244’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\203’ in program
prog.c:1: error: stray ‘\253’ 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 ‘\200’ in program
prog.c:1: error: stray ‘\201’ 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 ‘\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 ‘\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 ‘\250’ 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 ‘\215’ 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 ‘\346’ in program
prog.c:1: error: stray ‘\254’ in program
prog.c:1: error: stray ‘\241’ 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 ‘\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 ‘\201’ in program
prog.c:1: error: stray ‘\206’ in program
prog.c:1: error: stray ‘\343’ in program
prog.c:1: error: stray ‘\201’ in program
prog.c:1: error: stray ‘\252’ in program
prog.c:1: error: stray ‘\347’ in program
prog.c:1: error: stray ‘\265’ in program
prog.c:1: error: stray ‘\220’ in program
prog.c:1: error: stray ‘\346’ in program
prog.c:1: error: stray ‘\236’ 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 ‘\214’ in program
prog.c:1: error: stray ‘\350’ in program
prog.c:1: error: stray ‘\241’ in program
prog.c:1: error: stray ‘\250’ in program
prog.c:1: error: stray ‘\347’ in program
prog.c:1: error: stray ‘\244’ in program
prog.c:1: error: stray ‘\272’ 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 ‘\214’ 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 ‘\200’ in program
prog.c:1: error: stray ‘\202’ in program
prog.c:2: error: stray ‘\344’ in program
prog.c:2: error: stray ‘\270’ in program
prog.c:2: error: stray ‘\213’ in program
prog.c:2: error: stray ‘\350’ in program
prog.c:2: error: stray ‘\250’ in program
prog.c:2: error: stray ‘\230’ in program
prog.c:2: error: stray ‘\343’ in program
prog.c:2: error: stray ‘\201’ in program
prog.c:2: error: stray ‘\256’ in program
prog.c:2: error: stray ‘\351’ in program
prog.c:2: error: stray ‘\226’ in program
prog.c:2: error: stray ‘\242’ in program
prog.c:2: error: stray ‘\346’ in program
prog.c:2: error: stray ‘\225’ in program
prog.c:2: error: stray ‘\260’ in program
prog.c:2: error: stray ‘\345’ in program
prog.c:2: error: stray ‘\256’ in program
prog.c:2: error: stray ‘\232’ in program
prog.c:2: error: stray ‘\347’ in program
prog.c:2: error: stray ‘\276’ in program
prog.c:2: error: stray ‘\251’ in program
prog.c:2: error: stray ‘\351’ in program
prog.c:2: error: stray ‘\203’ in program
prog.c:2: error: stray ‘\250’ in program
prog.c:2: error: stray ‘\345’ in program
prog.c:2: error: stray ‘\210’ in program
prog.c:2: error: stray ‘\206’ in program
prog.c:2: error: stray ‘\343’ in program
prog.c:2: error: stray ‘\202’ in program
prog.c:2: error: stray ‘\222’ in program
prog.c:2: error: stray ‘\350’ in program
prog.c:2: error: stray ‘\243’ in program
prog.c:2: error: stray ‘\234’ in program
prog.c:2: error: stray ‘\343’ in program
prog.c:2: error: stray ‘\201’ in program
prog.c:2: error: stray ‘\204’ in program
prog.c:2: error: stray ‘\343’ in program
prog.c:2: error: stray ‘\201’ in program
prog.c:2: error: stray ‘\252’ in program
prog.c:2: error: stray ‘\343’ in program
prog.c:2: error: stray ‘\201’ in program
prog.c:2: error: stray ‘\225’ in program
prog.c:2: error: stray ‘\343’ in program
prog.c:2: error: stray ‘\201’ in program
prog.c:2: error: stray ‘\204’ in program
prog.c:2: error: stray ‘\343’ in program
prog.c:2: error: stray ‘\200’ in program
prog.c:2: error: stray ‘\202’ in program
prog.c:4: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘test’
prog.c:9: error: stray ‘\344’ in program
prog.c:9: error: stray ‘\273’ in program
prog.c:9: error: stray ‘\245’ in program
prog.c:9: error: stray ‘\344’ in program
prog.c:9: error: stray ‘\270’ in program
prog.c:9: error: stray ‘\213’ in program
prog.c:9: error: stray ‘\343’ in program
prog.c:9: error: stray ‘\202’ in program
prog.c:9: error: stray ‘\275’ in program
prog.c:9: error: stray ‘\343’ in program
prog.c:9: error: stray ‘\203’ in program
prog.c:9: error: stray ‘\274’ in program
prog.c:9: error: stray ‘\343’ in program
prog.c:9: error: stray ‘\202’ in program
prog.c:9: error: stray ‘\271’ in program
prog.c:9: error: stray ‘\343’ in program
prog.c:9: error: stray ‘\202’ in program
prog.c:9: error: stray ‘\263’ in program
prog.c:9: error: stray ‘\343’ in program
prog.c:9: error: stray ‘\203’ in program
prog.c:9: error: stray ‘\274’ in program
prog.c:9: error: stray ‘\343’ in program
prog.c:9: error: stray ‘\203’ in program
prog.c:9: error: stray ‘\211’ in program
In file included from /usr/include/stdio.h:75,
                 from prog.c:11:
/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:11:
/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:11:
/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:17: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result
prog.c:18: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result
stdout
Standard output is empty