fork download
  1. * Helloプログラム */
  2.  
  3. #include <stdio.h>
  4.  
  5. main()
  6. {
  7. int a;
  8. int b;
  9. int c;
  10. int goukei;
  11. int year;
  12. int month;
  13. int day;
  14.  
  15. a =2;
  16. year =2026;
  17. month =5;
  18. day=14;
  19.  
  20. printf("Hello\nWorld!\n");
  21. printf("%d\n",a);
  22. printf("今日は %d 年 %d 月 %d 日です\n",year,month,day);
  23.  
  24.  
  25. }
Compilation error #stdin compilation error #stdout 0s 5316KB
stdin
Standard input is empty
compilation info
prog.c:1:8: error: stray ‘\343’ in program
 * Helloプログラム */
        ^
prog.c:1:9: error: stray ‘\203’ in program
 * Helloプログラム */
         ^
prog.c:1:10: error: stray ‘\227’ in program
 * Helloプログラム */
          ^
prog.c:1:11: error: stray ‘\343’ in program
 * Helloプログラム */
           ^
prog.c:1:12: error: stray ‘\203’ in program
 * Helloプログラム */
            ^
prog.c:1:13: error: stray ‘\255’ in program
 * Helloプログラム */
             ^
prog.c:1:14: error: stray ‘\343’ in program
 * Helloプログラム */
              ^
prog.c:1:15: error: stray ‘\202’ in program
 * Helloプログラム */
               ^
prog.c:1:16: error: stray ‘\260’ in program
 * Helloプログラム */
                ^
prog.c:1:17: error: stray ‘\343’ in program
 * Helloプログラム */
                 ^
prog.c:1:18: error: stray ‘\203’ in program
 * Helloプログラム */
                  ^
prog.c:1:19: error: stray ‘\251’ in program
 * Helloプログラム */
                   ^
prog.c:1:20: error: stray ‘\343’ in program
 * Helloプログラム */
                    ^
prog.c:1:21: error: stray ‘\203’ in program
 * Helloプログラム */
                     ^
prog.c:1:22: error: stray ‘\240’ in program
 * Helloプログラム */
                      ^
prog.c:1:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
 * Helloプログラム */
                        ^
In file included from /usr/include/stdio.h:43,
                 from prog.c:3:
/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h:95:3: error: unknown type name ‘size_t’
   size_t __pad5;
   ^~~~~~
/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h:98:67: error: ‘size_t’ undeclared here (not in a function)
   char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
                                                                   ^~~~~~
/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h:98:67: note: ‘size_t’ is defined in header ‘<stddef.h>’; did you forget to ‘#include <stddef.h>’?
/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h:1:1:
+#include <stddef.h>
 /* Copyright (C) 1991-2019 Free Software Foundation, Inc.
/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h:98:67:
   char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
                                                                   ^~~~~~
In file included from prog.c:3:
/usr/include/stdio.h:309:20: error: expected declaration specifiers or ‘...’ before ‘size_t’
       int __modes, size_t __n) __THROW;
                    ^~~~~~
/usr/include/stdio.h:354:44: error: expected declaration specifiers or ‘...’ before ‘size_t’
 extern int snprintf (char *__restrict __s, size_t __maxlen,
                                            ^~~~~~
/usr/include/stdio.h:358:45: error: expected declaration specifiers or ‘...’ before ‘size_t’
 extern int vsnprintf (char *__restrict __s, size_t __maxlen,
                                             ^~~~~~
/usr/include/stdio.h:646:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread’
 extern size_t fread (void *__restrict __ptr, size_t __size,
               ^~~~~
/usr/include/stdio.h:652:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite’
 extern size_t fwrite (const void *__restrict __ptr, size_t __size,
               ^~~~~~
In file included from /usr/include/stdio.h:867,
                 from prog.c:3:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:26:61: error: expected declaration specifiers or ‘...’ before ‘size_t’
 extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen,
                                                             ^~~~~~
/usr/include/x86_64-linux-gnu/bits/stdio2.h:28:62: error: expected declaration specifiers or ‘...’ before ‘size_t’
 extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen,
                                                              ^~~~~~
/usr/include/x86_64-linux-gnu/bits/stdio2.h:55:50: error: expected declaration specifiers or ‘...’ before ‘size_t’
 extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag,
                                                  ^~~~~~
/usr/include/x86_64-linux-gnu/bits/stdio2.h:56:7: error: expected declaration specifiers or ‘...’ before ‘size_t’
       size_t __slen, const char *__restrict __format,
       ^~~~~~
/usr/include/x86_64-linux-gnu/bits/stdio2.h:58:51: error: expected declaration specifiers or ‘...’ before ‘size_t’
 extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag,
                                                   ^~~~~~
/usr/include/x86_64-linux-gnu/bits/stdio2.h:59:8: error: expected declaration specifiers or ‘...’ before ‘size_t’
        size_t __slen, const char *__restrict __format,
        ^~~~~~
In file included from /usr/include/features.h:446,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from prog.c:3:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:1: error: expected declaration specifiers or ‘...’ before ‘size_t’
 __NTH (snprintf (char *__restrict __s, size_t __n,
 ^~~~~
/usr/include/x86_64-linux-gnu/bits/stdio2.h:77:1: error: expected declaration specifiers or ‘...’ before ‘size_t’
 __NTH (vsnprintf (char *__restrict __s, size_t __n,
 ^~~~~
In file included from /usr/include/stdio.h:867,
                 from prog.c:3:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:243:49: error: expected declaration specifiers or ‘...’ before ‘size_t’
 extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n,
                                                 ^~~~~~
In file included from /usr/include/features.h:446,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from prog.c:3:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:248:14: error: expected declaration specifiers or ‘...’ before ‘size_t’
 extern char *__REDIRECT (__fgets_chk_warn,
              ^~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from prog.c:3:
/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘fgets’:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:262:19: error: expected ‘)’ before ‘__n’
       if ((size_t) __n > __bos (__s))
          ~        ^~~~
                   )
/usr/include/x86_64-linux-gnu/bits/stdio2.h: At top level:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:268:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__fread_chk’
 extern size_t __fread_chk (void *__restrict __ptr, size_t __ptrlen,
               ^~~~~~~~~~~
In file included from /usr/include/features.h:446,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from prog.c:3:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:271:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__fread_alias’
 extern size_t __REDIRECT (__fread_alias,
               ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/stdio2.h:275:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__fread_chk_warn’
 extern size_t __REDIRECT (__fread_chk_warn,
               ^~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from prog.c:3:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:284:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread’
 fread (void *__restrict __ptr, size_t __size, size_t __n,
 ^~~~~
prog.c:5:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main()
 ^~~~
prog.c: In function ‘main’:
prog.c:10:6: warning: unused variable ‘goukei’ [-Wunused-variable]
  int goukei;
      ^~~~~~
prog.c:9:6: warning: unused variable ‘c’ [-Wunused-variable]
  int c;
      ^
prog.c:8:6: warning: unused variable ‘b’ [-Wunused-variable]
  int b;
      ^
stdout
Standard output is empty