Record Detail

Compile Error

In file included from /usr/include/stdlib.h:32:0,
                 from /in/hotel-main.c:5:
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h: In function 'writedb':
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h:328:24: error: storage class specified for parameter 'wchar_t'
 typedef __WCHAR_TYPE__ wchar_t;
                        ^~~~~~~
In file included from /in/hotel-main.c:5:0:
/usr/include/stdlib.h:62:5: error: storage class specified for parameter 'div_t'
   } div_t;
     ^~~~~
/usr/include/stdlib.h:70:5: error: storage class specified for parameter 'ldiv_t'
   } ldiv_t;
     ^~~~~~
/usr/include/stdlib.h:78:1: error: expected declaration specifiers before '__extension__'
 __extension__ typedef struct
 ^~~~~~~~~~~~~
/usr/include/stdlib.h:82:5: error: expected declaration specifiers before 'lldiv_t'
   } lldiv_t;
     ^~~~~~~
/usr/include/stdlib.h:100:15: error: storage class specified for parameter '__ctype_get_mb_cur_max'
 extern size_t __ctype_get_mb_cur_max (void) __THROW __wur;
               ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdlib.h:105:15: error: storage class specified for parameter 'atof'
 extern double atof (const char *__nptr)
               ^~~~
/usr/include/stdlib.h:108:12: error: storage class specified for parameter 'atoi'
 extern int atoi (const char *__nptr)
            ^~~~
/usr/include/stdlib.h:111:17: error: storage class specified for parameter 'atol'
 extern long int atol (const char *__nptr)
                 ^~~~
/usr/include/stdlib.h:118:1: error: expected declaration specifiers before '__extension__'
 __extension__ extern long long int atoll (const char *__nptr)
 ^~~~~~~~~~~~~
/usr/include/stdlib.h:125:15: error: storage class specified for parameter 'strtod'
 extern double strtod (const char *__restrict __nptr,
               ^~~~~~
/usr/include/stdlib.h:133:14: error: storage class specified for parameter 'strtof'
 extern float strtof (const char *__restrict __nptr,
              ^~~~~~
/usr/include/stdlib.h:136:20: error: storage class specified for parameter 'strtold'
 extern long double strtold (const char *__restrict __nptr,
                    ^~~~~~~
/usr/include/stdlib.h:144:17: error: storage class specified for parameter 'strtol'
 extern long int strtol (const char *__restrict __nptr,
                 ^~~~~~
/usr/include/stdlib.h:148:26: error: storage class specified for parameter 'strtoul'
 extern unsigned long int strtoul (const char *__restrict __nptr,
                          ^~~~~~~
/usr/include/stdlib.h:169:1: error: expected declaration specifiers before '__extension__'
 __extension__
 ^~~~~~~~~~~~~
/usr/include/stdlib.h:174:1: error: expected declaration specifiers before '__extension__'
 __extension__
 ^~~~~~~~~~~~~
/usr/include/stdlib.h:335:12: error: storage class specified for parameter 'rand'
 extern int rand (void) __THROW;
            ^~~~
/usr/include/stdlib.h:337:13: error: storage class specified for parameter 'srand'
 extern void srand (unsigned int __seed) __THROW;
             ^~~~~
/usr/include/stdlib.h:427:14: error: storage class specified for parameter 'malloc'
 extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
              ^~~~~~
/usr/include/stdlib.h:429:14: error: storage class specified for parameter 'calloc'
 extern void *calloc (size_t __nmemb, size_t __size)
              ^~~~~~
/usr/include/stdlib.h:441:14: error: storage class specified for parameter 'realloc'
 extern void *realloc (void *__ptr, size_t __size)
              ^~~~~~~
/usr/include/stdlib.h:444:13: error: storage class specified for parameter 'free'
 extern void free (void *__ptr) __THROW;
             ^~~~
/usr/include/stdlib.h:470:14: error: storage class specified for parameter 'aligned_alloc'
 extern void *aligned_alloc (size_t __alignment, size_t __size)
              ^~~~~~~~~~~~~
/usr/include/stdlib.h:476:13: error: storage class specified for parameter 'abort'
 extern void abort (void) __THROW __attribute__ ((__noreturn__));
             ^~~~~
/usr/include/stdlib.h:480:12: error: storage class specified for parameter 'atexit'
 extern int atexit (void (*__func) (void)) __THROW __nonnull ((1));
            ^~~~~~
/usr/include/stdlib.h:488:12: error: storage class specified for parameter 'at_quick_exit'
 extern int at_quick_exit (void (*__func) (void)) __THROW __nonnull ((1));
            ^~~~~~~~~~~~~
/usr/include/stdlib.h:504:13: error: storage class specified for parameter 'exit'
 extern void exit (int __status) __THROW __attribute__ ((__noreturn__));
             ^~~~
/usr/include/stdlib.h:510:13: error: storage class specified for parameter 'quick_exit'
 extern void quick_exit (int __status) __THROW __attribute__ ((__noreturn__));
             ^~~~~~~~~~
/usr/include/stdlib.h:518:13: error: storage class specified for parameter '_Exit'
 extern void _Exit (int __status) __THROW __attribute__ ((__noreturn__));
             ^~~~~
/usr/include/stdlib.h:525:14: error: storage class specified for parameter 'getenv'
 extern char *getenv (const char *__name) __THROW __nonnull ((1)) __wur;
              ^~~~~~
/usr/include/stdlib.h:677:12: error: storage class specified for parameter 'system'
 extern int system (const char *__command) __wur;
            ^~~~~~
/usr/include/stdlib.h:702:15: error: storage class specified for parameter '__compar_fn_t'
 typedef int (*__compar_fn_t) (const void *, const void *);
               ^~~~~~~~~~~~~
/usr/include/stdlib.h:716:40: error: expected declaration specifiers or '...' before '__compar_fn_t'
         size_t __nmemb, size_t __size, __compar_fn_t __compar)
                                        ^~~~~~~~~~~~~
/usr/include/stdlib.h:726:6: error: expected declaration specifiers or '...' before '__compar_fn_t'
      __compar_fn_t __compar) __nonnull ((1, 4));
      ^~~~~~~~~~~~~
/usr/include/stdlib.h:735:12: error: storage class specified for parameter 'abs'
 extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
            ^~~
/usr/include/stdlib.h:736:17: error: storage class specified for parameter 'labs'
 extern long int labs (long int __x) __THROW __attribute__ ((__const__)) __wur;
                 ^~~~
/usr/include/stdlib.h:740:1: error: expected declaration specifiers before '__extension__'
 __extension__ extern long long int llabs (long long int __x)
 ^~~~~~~~~~~~~
/usr/include/stdlib.h:749:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'div'
 extern div_t div (int __numer, int __denom)
              ^~~
/usr/include/stdlib.h:751:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ldiv'
 extern ldiv_t ldiv (long int __numer, long int __denom)
               ^~~~
/usr/include/stdlib.h:757:1: error: expected declaration specifiers before '__extension__'
 __extension__ extern lldiv_t lldiv (long long int __numer,
 ^~~~~~~~~~~~~
/usr/include/stdlib.h:823:12: error: storage class specified for parameter 'mblen'
 extern int mblen (const char *__s, size_t __n) __THROW;
            ^~~~~
/usr/include/stdlib.h:826:20: error: expected declaration specifiers or '...' before 'wchar_t'
 extern int mbtowc (wchar_t *__restrict __pwc,
                    ^~~~~~~
/usr/include/stdlib.h:830:31: error: expected declaration specifiers or '...' before 'wchar_t'
 extern int wctomb (char *__s, wchar_t __wchar) __THROW;
                               ^~~~~~~
/usr/include/stdlib.h:834:25: error: expected declaration specifiers or '...' before 'wchar_t'
 extern size_t mbstowcs (wchar_t *__restrict  __pwcs,
                         ^~~~~~~
/usr/include/stdlib.h:838:18: error: expected ';', ',' or ')' before '*' token
    const wchar_t *__restrict __pwcs, size_t __n)
                  ^
/in/hotel-main.c:7:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
 int main() {
            ^
In file included from /in/hotel-mt.h:9:0,
                 from /in/hotel-main.c:2:
/in/hotel-db.h:14:6: error: old-style parameter declarations in prototyped function definition
 void writedb(rd *h,vis *hv)
      ^~~~~~~
/in/hotel-main.c:59:1: error: expected '{' at end of input
 }
 ^
/in/hotel-mt.c: In function 'writedb':
/in/hotel-mt.c:9:31: error: expected '=', ',', ';', 'asm' or '__attribute__

Information

Submit By
Type
Submission
Homework
Project 2
Language
C
Submit At
2018-07-17 10:32:56
Judged At
2018-07-17 10:32:56
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes