4
answers
0
watching
152
views

sorry but has errors.                                                  ERROR!
gcc /tmp/VukZJMpWJP.c -lm
/tmp/VukZJMpWJP.c:1:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '!' token
    1 | Sure! Here's the complete code with the structs for car features, branch information, and transfer details:
      |     ^
/tmp/VukZJMpWJP.c:1:11: warning: missing terminating ' character
    1 | Sure! Here's the complete code with the structs for car features, branch information, and transfer details:
      |           ^
/tmp/VukZJMpWJP.c:1:11: error: missing terminating ' character
    1 | Sure! Here's the complete code with the structs for car features, branch information, and transfer details:
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:43,
                 from /tmp/VukZJMpWJP.c:5:
/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h:95:3: error: unknown type name 'size_t'
   95 |   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)
   98 | ar _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
      |                                                               ^~~~~~

/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h:1:1: note: 'size_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
  +++ |+#include <stddef.h>
    1 | /* Copyright (C) 1991-2022 Free Software Foundation, Inc.
In file included from /tmp/VukZJMpWJP.c:5:
/usr/include/stdio.h:308:35: error: expected declaration specifiers or '...' before 'size_t'
  308 | extern FILE *fmemopen (void *__s, size_t __len, const char *__modes)
      |                                   ^~~~~~
/usr/include/stdio.h:314:47: error: expected declaration specifiers or '...' before 'size_t'
  314 | extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __THROW
      |                                               ^~~~~~
/usr/include/stdio.h:333:34: error: expected declaration specifiers or '...' before 'size_t'
  333 |                     int __modes, size_t __n) __THROW;
      |                                  ^~~~~~
/usr/include/stdio.h:339:24: error: expected declaration specifiers or '...' before 'size_t'
  339 |                        size_t __size) __THROW;
      |                        ^~~~~~
/usr/include/stdio.h:378:44: error: expected declaration specifiers or '...' before 'size_t'
  378 | extern int snprintf (char *__restrict __s, size_t __maxlen,
      |                                            ^~~~~~
/usr/include/stdio.h:382:45: error: expected declaration specifiers or '...' before 'size_t'
  382 | extern int vsnprintf (char *__restrict __s, size_t __maxlen,
      |                                             ^~~~~~
In file included from /tmp/VukZJMpWJP.c:5:
/usr/include/stdio.h:633:30: error: expected declaration specifiers or '...' before 'size_t'
  633 |                              size_t *__restrict __n, int __delimiter,
      |                              ^~~~~~
/usr/include/stdio.h:636:28: error: expected declaration specifiers or '...' before 'size_t'
  636 |                            size_t *__restrict __n, int __delimiter,
      |                            ^~~~~~
/usr/include/stdio.h:646:27: error: expected declaration specifiers or '...' before 'size_t'
  646 |                           size_t *__restrict __n,
      |                           ^~~~~~
/usr/include/stdio.h:675:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread'
  675 | extern size_t fread (void *__restrict __ptr, size_t __size,
      |               ^~~~~
/usr/include/stdio.h:681:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite'
  681 | extern size_t fwrite (const void *__restrict __ptr, size_t __size,
      |               ^~~~~~
/usr/include/stdio.h:702:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread_unlocked'
  702 | extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
      |               ^~~~~~~~~~~~~~
/usr/include/stdio.h:704:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite_unlocked'
  704 | extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size,
      |               ^~~~~~~~~~~~~~~
In file included from /tmp/VukZJMpWJP.c:7:
/usr/include/string.h:44:22: error: expected declaration specifiers or '...' before 'size_t'
   44 |                      size_t __n) __THROW __nonnull ((1, 2));
      |                      ^~~~~~
/usr/include/string.h:47:56: error: expected declaration specifiers or '...' before 'size_t'
   47 | extern void *memmove (void *__dest, const void *__src, size_t __n)
      |                                                        ^~~~~~
/usr/include/string.h:55:32: error: expected declaration specifiers or '...' before 'size_t'
   55 |                       int __c, size_t __n)
      |                                ^~~~~~
/usr/include/string.h:61:42: error: expected declaration specifiers or '...' before 'size_t'
   61 | extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
      |                                          ^~~~~~
/usr/include/string.h:64:56: error: expected declaration specifiers or '...' before 'size_t'
   64 | extern int memcmp (const void *__s1, const void *__s2, size_t __n)
      |                                                        ^~~~~~
/usr/include/string.h:80:60: error: expected declaration specifiers or '...' before 'size_t'
   80 | extern int __memcmpeq (const void *__s1, const void *__s2, size_t __n)
      |                                                            ^~~~~~
/usr/include/string.h:107:48: error: expected declaration specifiers or '...' before 'size_t'
  107 | extern void *memchr (const void *__s, int __c, size_t __n)
      |                                                ^~~~~~
/usr/include/string.h:145:53: error: expected declaration specifiers or '...' before 'size_t'
  145 |                       const char *__restrict __src, size_t __n)
      |                                                     ^~~~~~
/usr/include/string.h:153:23: error: expected declaration specifiers or '...' before 'size_t'
  153 |                       size_t __n) __THROW __nonnull ((1, 2));
      |                       ^~~~~~
/usr/include/string.h:159:57: error: expected declaration specifiers or '...' before 'size_t'
  159 | extern int strncmp (const char *__s1, const char *__s2, size_t __n)
      |                                                         ^~~~~~
/usr/include/string.h:166:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strxfrm'
  166 | extern size_t strxfrm (char *__restrict __dest,
      |               ^~~~~~~
In file included from /tmp/VukZJMpWJP.c:7:
/usr/include/string.h:179:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strxfrm_l'
  179 | extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n,
      |               ^~~~~~~~~
/usr/include/string.h:195:45: error: expected declaration specifiers or '...' before 'size_t'
  195 | extern char *strndup (const char *__string, size_t __n)
      |                                             ^~~~~~
/usr/include/string.h:293:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strcspn'
  293 | extern size_t strcspn (const char *__s, const char *__reject)
      |               ^~~~~~~
/usr/include/string.h:297:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strspn'
  297 | extern size_t strspn (const char *__s, const char *__accept)
      |               ^~~~~~
/usr/include/string.h:407:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strlen'
  407 | extern size_t strlen (const char *__s)
      |               ^~~~~~
/usr/include/string.h:413:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strnlen'
  413 | extern size_t strnlen (const char *__string, size_t __maxlen)
      |               ^~~~~~~
In file included from /usr/include/features.h:486,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from /tmp/VukZJMpWJP.c:5:
/usr/include/string.h:432:12: error: expected declaration specifiers or '...' before 'size_t'
  432 | extern int __REDIRECT_NTH (strerror_r,
      |            ^~~~~~~~~~~~~~
In file included from /usr/include/string.h:462,
                 from /tmp/VukZJMpWJP.c:7:
/usr/include/strings.h:34:54: error: expected declaration specifiers or '...' before 'size_t'
   34 | extern int bcmp (const void *__s1, const void *__s2, size_t __n)
      |                                                      ^~~~~~
/usr/include/strings.h:38:53: error: expected declaration specifiers or '...' before 'size_t'
   38 | extern void bcopy (const void *__src, void *__dest, size_t __n)
      |                                                     ^~~~~~
/usr/include/strings.h:42:31: error: expected declaration specifiers or '...' before 'size_t'
   42 | extern void bzero (void *__s, size_t __n) __THROW __nonnull ((1));
      |                               ^~~~~~
/usr/include/strings.h:120:61: error: expected declaration specifiers or '...' before 'size_t'
  120 | extern int strncasecmp (const char *__s1, const char *__s2, size_t __n)
      |                                                             ^~~~~~
/usr/include/strings.h:134:27: error: expected declaration specifiers or '...' before 'size_t'
  134 |                           size_t __n, locale_t __loc)
      |                           ^~~~~~
In file included from /tmp/VukZJMpWJP.c:7:
/usr/include/string.h:466:40: error: expected declaration specifiers or '...' before 'size_t'
  466 | extern void explicit_bzero (void *__s, size_t __n) __THROW __nonnull ((1))
      |                                        ^~~~~~
/usr/include/string.h:497:55: error: expected declaration specifiers or '...' before 'size_t'
  497 |                         const char *__restrict __src, size_t __n)
      |                                                       ^~~~~~
/usr/include/string.h:500:53: error: expected declaration specifiers or '...' before 'size_t'
  500 |                       const char *__restrict __src, size_t __n)
      |                                                     ^~~~~~
/tmp/VukZJMpWJP.c: In function 'main':
/tmp/VukZJMpWJP.c:128:9: error: expected expression at end of input
  128 |         .isHybrid = false,
      |         ^
/tmp/VukZJMpWJP.c:128:9: error: expected declaration or statement at end of input

For unlimited access to Homework Help, a Homework+ subscription is required.

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in
Already have an account? Log in
Avatar image
Read by 1 person
Already have an account? Log in
Avatar image
Read by 1 person
Already have an account? Log in

Related questions

Weekly leaderboard

Start filling in the gaps now
Log in