fork download
  1. #define int
  2. #include<cstdlib>
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
In file included from /usr/include/c++/4.9/cstdlib:41:0,
                 from prog.cpp:2:
/usr/include/i386-linux-gnu/c++/4.9/bits/c++config.h:189:28: error: 'ptrdiff_t' does not name a type
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^
In file included from /usr/include/i386-linux-gnu/bits/byteswap.h:27:0,
                 from /usr/include/endian.h:60,
                 from /usr/include/i386-linux-gnu/bits/waitstatus.h:64,
                 from /usr/include/stdlib.h:42,
                 from /usr/include/c++/4.9/cstdlib:72,
                 from prog.cpp:2:
/usr/include/i386-linux-gnu/bits/types.h:133:25: error: '__pid_t' does not name a type
 __STD_TYPE __PID_T_TYPE __pid_t; /* Type of process identifications.  */
                         ^
In file included from /usr/include/i386-linux-gnu/bits/types.h:121:0,
                 from /usr/include/i386-linux-gnu/bits/byteswap.h:27,
                 from /usr/include/endian.h:60,
                 from /usr/include/i386-linux-gnu/bits/waitstatus.h:64,
                 from /usr/include/stdlib.h:42,
                 from /usr/include/c++/4.9/cstdlib:72,
                 from prog.cpp:2:
/usr/include/i386-linux-gnu/bits/types.h:134:12: error: '__val' does not name a type
 __STD_TYPE __FSID_T_TYPE __fsid_t; /* Type of file system IDs.  */
            ^
In file included from /usr/include/i386-linux-gnu/bits/byteswap.h:27:0,
                 from /usr/include/endian.h:60,
                 from /usr/include/i386-linux-gnu/bits/waitstatus.h:64,
                 from /usr/include/stdlib.h:42,
                 from /usr/include/c++/4.9/cstdlib:72,
                 from prog.cpp:2:
/usr/include/i386-linux-gnu/bits/types.h:143:27: error: '__daddr_t' does not name a type
 __STD_TYPE __DADDR_T_TYPE __daddr_t; /* The type of a disk address.  */
                           ^
/usr/include/i386-linux-gnu/bits/types.h:144:25: error: '__key_t' does not name a type
 __STD_TYPE __KEY_T_TYPE __key_t; /* Type of an IPC key.  */
                         ^
/usr/include/i386-linux-gnu/bits/types.h:147:29: error: '__clockid_t' does not name a type
 __STD_TYPE __CLOCKID_T_TYPE __clockid_t;
                             ^
/usr/include/i386-linux-gnu/bits/types.h:170:28: error: '__fsword_t' does not name a type
 __STD_TYPE __FSWORD_T_TYPE __fsword_t;
                            ^
/usr/include/i386-linux-gnu/bits/types.h:172:27: error: '__ssize_t' does not name a type
 __STD_TYPE __SSIZE_T_TYPE __ssize_t; /* Type of a byte count, or error.  */
                           ^
/usr/include/i386-linux-gnu/bits/types.h:186:25: error: '__intptr_t' does not name a type
 __STD_TYPE __SWORD_TYPE __intptr_t;
                         ^
In file included from /usr/include/stdlib.h:42:0,
                 from /usr/include/c++/4.9/cstdlib:72,
                 from prog.cpp:2:
/usr/include/i386-linux-gnu/bits/waitstatus.h:68:9: error: 'w_status' does not name a type
     int w_status;
         ^
In file included from /usr/include/c++/4.9/cstdlib:72:0,
                 from prog.cpp:2:
/usr/include/stdlib.h:99:9: error: 'quot' does not name a type
     int quot;   /* Quotient.  */
         ^
/usr/include/stdlib.h:100:9: error: 'rem' does not name a type
     int rem;   /* Remainder.  */
         ^
/usr/include/stdlib.h:184:36: error: '__base' has not been declared
    char **__restrict __endptr, int __base)
                                    ^
/usr/include/stdlib.h:188:39: error: '__base' has not been declared
       char **__restrict __endptr, int __base)
                                       ^
/usr/include/stdlib.h:196:41: error: '__base' has not been declared
         char **__restrict __endptr, int __base)
                                         ^
/usr/include/stdlib.h:201:44: error: '__base' has not been declared
            char **__restrict __endptr, int __base)
                                            ^
/usr/include/stdlib.h:210:42: error: '__base' has not been declared
          char **__restrict __endptr, int __base)
                                          ^
/usr/include/stdlib.h:215:38: error: '__base' has not been declared
      char **__restrict __endptr, int __base)
                                      ^
In file included from /usr/include/c++/4.9/cstdlib:72:0,
                 from prog.cpp:2:
/usr/include/stdlib.h:240:38: error: '__base' has not been declared
      char **__restrict __endptr, int __base,
                                      ^
/usr/include/stdlib.h:245:13: error: '__base' has not been declared
         int __base, __locale_t __loc)
             ^
/usr/include/stdlib.h:250:37: error: '__base' has not been declared
     char **__restrict __endptr, int __base,
                                     ^
/usr/include/stdlib.h:257:12: error: '__base' has not been declared
        int __base, __locale_t __loc)
            ^
/usr/include/stdlib.h: In function 'int atoi(const char*)':
/usr/include/stdlib.h:280:14: error: expected primary-expression before ')' token
   return (int) strtol (__nptr, (char **) NULL, 10);
              ^
/usr/include/stdlib.h:280:16: error: expected ';' before 'strtol'
   return (int) strtol (__nptr, (char **) NULL, 10);
                ^
In file included from /usr/include/stdlib.h:314:0,
                 from /usr/include/c++/4.9/cstdlib:72,
                 from prog.cpp:2:
/usr/include/i386-linux-gnu/sys/types.h: At global scope:
/usr/include/i386-linux-gnu/sys/types.h:98:9: error: '__pid_t' does not name a type
 typedef __pid_t pid_t;
         ^
/usr/include/i386-linux-gnu/sys/types.h:109:9: error: '__ssize_t' does not name a type
 typedef __ssize_t ssize_t;
         ^
/usr/include/i386-linux-gnu/sys/types.h:115:9: error: '__daddr_t' does not name a type
 typedef __daddr_t daddr_t;
         ^
/usr/include/i386-linux-gnu/sys/types.h:122:9: error: '__key_t' does not name a type
 typedef __key_t key_t;
         ^
In file included from /usr/include/i386-linux-gnu/sys/types.h:132:0,
                 from /usr/include/stdlib.h:314,
                 from /usr/include/c++/4.9/cstdlib:72,
                 from prog.cpp:2:
/usr/include/time.h:91:9: error: '__clockid_t' does not name a type
 typedef __clockid_t clockid_t;
         ^
In file included from /usr/include/stdlib.h:314:0,
                 from /usr/include/c++/4.9/cstdlib:72,
                 from prog.cpp:2:
/usr/include/i386-linux-gnu/sys/types.h:194:1: error: 'int8_t' does not name a type
 __intN_t (8, __QI__);
 ^
/usr/include/i386-linux-gnu/sys/types.h:195:1: error: 'int16_t' does not name a type
 __intN_t (16, __HI__);
 ^
/usr/include/i386-linux-gnu/sys/types.h:196:1: error: 'int32_t' does not name a type
 __intN_t (32, __SI__);
 ^
/usr/include/i386-linux-gnu/sys/types.h:197:1: error: 'int64_t' does not name a type
 __intN_t (64, __DI__);
 ^
/usr/include/i386-linux-gnu/sys/types.h:205:13: error: 'register_t' does not name a type
 typedef int register_t __attribute__ ((__mode__ (__word__)));
             ^
In file included from /usr/include/i386-linux-gnu/sys/select.h:33:0,
                 from /usr/include/i386-linux-gnu/sys/types.h:219,
                 from /usr/include/stdlib.h:314,
                 from /usr/include/c++/4.9/cstdlib:72,
                 from prog.cpp:2:
/usr/include/i386-linux-gnu/bits/sigset.h:22:13: error: '__sig_atomic_t' does not name a type
 typedef int __sig_atomic_t;
             ^
In file included from /usr/include/i386-linux-gnu/sys/types.h:219:0,
                 from /usr/include/stdlib.h:314,
                 from /usr/include/c++/4.9/cstdlib:72,
                 from prog.cpp:2:
/usr/include/i386-linux-gnu/sys/select.h:69:39: error: expected primary-expression before ')' token
     __fd_mask fds_bits[__FD_SETSIZE / __NFDBITS];
                                       ^
/usr/include/i386-linux-gnu/sys/select.h:69:39: error: expected ')' before 'sizeof'
     __fd_mask fds_bits[__FD_SETSIZE / __NFDBITS];
                                       ^
/usr/include/i386-linux-gnu/sys/select.h:69:49: error: expected ']' before ';' token
     __fd_mask fds_bits[__FD_SETSIZE / __NFDBITS];
                                                 ^
/usr/include/i386-linux-gnu/sys/select.h:106:24: error: '__nfds' was not declared in this scope
 extern int select (int __nfds, fd_set *__restrict __readfds,
                        ^
/usr/include/i386-linux-gnu/sys/select.h:106:39: error: expected primary-expression before '*' token
 extern int select (int __nfds, fd_set *__restrict __readfds,
                                       ^
/usr/include/i386-linux-gnu/sys/select.h:106:40: error: expected primary-expression before '__restrict'
 extern int select (int __nfds, fd_set *__restrict __readfds,
                                        ^
/usr/include/i386-linux-gnu/sys/select.h:107:13: error: expected primary-expression before '*' token
      fd_set *__restrict __writefds,
             ^
/usr/include/i386-linux-gnu/sys/select.h:107:14: error: expected primary-expression before '__restrict'
      fd_set *__restrict __writefds,
              ^
/usr/include/i386-linux-gnu/sys/select.h:108:13: error: expected primary-expression before '*' token
      fd_set *__restrict __exceptfds,
             ^
/usr/include/i386-linux-gnu/sys/select.h:108:14: error: expected primary-expression before '__restrict'
      fd_set *__restrict __exceptfds,
              ^
/usr/include/i386-linux-gnu/sys/select.h:109:6: error: expected primary-expression before 'struct'
      struct timeval *__restrict __timeout);
      ^
/usr/include/i386-linux-gnu/sys/select.h:109:42: error: expression list treated as compound expression in initializer [-fpermissive]
      struct timeval *__restrict __timeout);
                                          ^
/usr/include/i386-linux-gnu/sys/select.h:118:25: error: '__nfds' was not declared in this scope
 extern int pselect (int __nfds, fd_set *__restrict __readfds,
                         ^
/usr/include/i386-linux-gnu/sys/select.h:118:40: error: expected primary-expression before '*' token
 extern int pselect (int __nfds, fd_set *__restrict __readfds,
                                        ^
/usr/include/i386-linux-gnu/sys/select.h:118:41: error: expected primary-expression before '__restrict'
 extern int pselect (int __nfds, fd_set *__restrict __readfds,
                                         ^
/usr/include/i386-linux-gnu/sys/select.h:119:14: error: expected primary-expression before '*' token
       fd_set *__restrict __writefds,
              ^
/usr/include/i386-linux-gnu/sys/select.h:119:15: error: expected primary-expression before '__restrict'
       fd_set *__restrict __writefds,
               ^
/usr/include/i386-linux-gnu/sys/select.h:120:14: error: expected primary-expression before '*' token
       fd_set *__restrict __exceptfds,
              ^
/usr/include/i386-linux-gnu/sys/select.h:120:15: error: expected primary-expression before '__restrict'
       fd_set *__restrict __exceptfds,
               ^
/usr/include/i386-linux-gnu/sys/select.h:121:7: error: expected primary-expression before 'const'
       const struct timespec *__restrict __timeout,
       ^
/usr/include/i386-linux-gnu/sys/select.h:122:7: error: expected primary-expression before 'const'
       const __sigset_t *__restrict __sigmask);
       ^
/usr/include/i386-linux-gnu/sys/select.h:122:45: error: expression list treated as compound expression in initializer [-fpermissive]
       const __sigset_t *__restrict __sigmask);
                                             ^
In file included from /usr/include/i386-linux-gnu/sys/types.h:270:0,
                 from /usr/include/stdlib.h:314,
                 from /usr/include/c++/4.9/cstdlib:72,
                 from prog.cpp:2:
/usr/include/i386-linux-gnu/bits/pthreadtypes.h:94:9: error: '__lock' does not name a type
     int __lock;
         ^
/usr/include/i386-linux-gnu/bits/pthreadtypes.h:96:9: error: '__owner' does not name a type
     int __owner;
         ^
/usr/include/i386-linux-gnu/bits/pthreadtypes.h:102:9: error: '__kind' does not name a type
     int __kind;
         ^
/usr/include/i386-linux-gnu/bits/pthreadtypes.h:132:7: error: '__align' does not name a type
   int __align;
       ^
/usr/include/i386-linux-gnu/bits/pthreadtypes.h:142:9: error: '__lock' does not name a type
     int __lock;
         ^
/usr/include/i386-linux-gnu/bits/pthreadtypes.h:158:7: error: '__align' does not name a type
   int __align;
       ^
/usr/include/i386-linux-gnu/bits/pthreadtypes.h:167:13: error: 'pthread_once_t' does not name a type
 typedef int pthread_once_t;
             ^
/usr/include/i386-linux-gnu/bits/pthreadtypes.h:196:9: error: '__lock' does not name a type
     int __lock;
         ^
/usr/include/i386-linux-gnu/bits/pthreadtypes.h:208:9: error: '__writer' does not name a type
     int __writer;
         ^
/usr/include/i386-linux-gnu/bits/pthreadtypes.h:225:22: error: 'pthread_spinlock_t' does not name a type
 typedef volatile int pthread_spinlock_t;
                      ^
/usr/include/i386-linux-gnu/bits/pthreadtypes.h:239:7: error: '__align' does not name a type
   int __align;
       ^
In file included from /usr/include/c++/4.9/cstdlib:72:0,
                 from prog.cpp:2:
/usr/include/stdlib.h:345:5: error: 'int32_t' does not name a type
     int32_t *fptr;  /* Front pointer.  */
     ^
/usr/include/stdlib.h:346:5: error: 'int32_t' does not name a type
     int32_t *rptr;  /* Rear pointer.  */
     ^
/usr/include/stdlib.h:347:5: error: 'int32_t' does not name a type
     int32_t *state;  /* Array of state values.  */
     ^
/usr/include/stdlib.h:348:9: error: 'rand_type' does not name a type
     int rand_type;  /* Type of random number generator.  */
         ^
/usr/include/stdlib.h:349:9: error: 'rand_deg' does not name a type
     int rand_deg;  /* Degree of random number generator.  */
         ^
/usr/include/stdlib.h:350:9: error: 'rand_sep' does not name a type
     int rand_sep;  /* Distance between front and rear.  */
         ^
/usr/include/stdlib.h:351:5: error: 'int32_t' does not name a type
     int32_t *end_ptr;  /* Pointer behind state table.  */
     ^
/usr/include/stdlib.h:355:8: error: 'int32_t' has not been declared
        int32_t *__restrict __result) __THROW __nonnull ((1, 2));
        ^
In file included from /usr/include/c++/4.9/cstdlib:72:0,
                 from prog.cpp:2:
/usr/include/stdlib.h:525:53: error: expected constructor, destructor, or type conversion before ';' token
      __THROW __asm ("at_quick_exit") __nonnull ((1));
                                                     ^
/usr/include/stdlib.h:535:28: error: '__func' was not declared in this scope
 extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
                            ^
/usr/include/stdlib.h:535:41: error: '__status' was not declared in this scope
 extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
                                         ^
/usr/include/stdlib.h:535:51: error: expected primary-expression before 'void'
 extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
                                                   ^
/usr/include/stdlib.h:535:65: error: expected primary-expression before 'void'
 extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
                                                                 ^
/usr/include/stdlib.h:535:76: error: expression list treated as compound expression in initializer [-fpermissive]
 extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
                                                                            ^
In file included from /usr/include/features.h:374:0,
                 from /usr/include/i386-linux-gnu/c++/4.9/bits/os_defines.h:39,
                 from /usr/include/i386-linux-gnu/c++/4.9/bits/c++config.h:430,
                 from /usr/include/c++/4.9/cstdlib:41,
                 from prog.cpp:2:
/usr/include/stdlib.h:536:6: error: expected ',' or ';' before 'throw'
      __THROW __nonnull ((1));
      ^
In file included from /usr/include/c++/4.9/cstdlib:72:0,
                 from prog.cpp:2:
/usr/include/stdlib.h:543:31: error: variable or field 'exit' declared void
 extern void exit (int __status) __THROW __attribute__ ((__noreturn__));
                               ^
/usr/include/stdlib.h:543:23: error: '__status' was not declared in this scope
 extern void exit (int __status) __THROW __attribute__ ((__noreturn__));
                       ^
/usr/include/stdlib.h:549:37: error: variable or field 'quick_exit' declared void
 extern void quick_exit (int __status) __THROW __attribute__ ((__noreturn__));
                                     ^
/usr/include/stdlib.h:549:29: error: '__status' was not declared in this scope
 extern void quick_exit (int __status) __THROW __attribute__ ((__noreturn__));
                             ^
/usr/include/stdlib.h:557:32: error: variable or field '_Exit' declared void
 extern void _Exit (int __status) __THROW __attribute__ ((__noreturn__));
                                ^
/usr/include/stdlib.h:557:24: error: '__status' was not declared in this scope
 extern void _Exit (int __status) __THROW __attribute__ ((__noreturn__));
                        ^
/usr/include/stdlib.h:584:65: error: '__replace' has not been declared
 extern int setenv (const char *__name, const char *__value, int __replace)
                                                                 ^
/usr/include/stdlib.h:642:44: error: '__suffixlen' has not been declared
 extern int mkstemps (char *__template, int __suffixlen) __nonnull ((1)) __wur;
                                            ^
/usr/include/stdlib.h:652:46: error: '__suffixlen' has not been declared
 extern int mkstemps64 (char *__template, int __suffixlen)
                                              ^
/usr/include/stdlib.h:674:44: error: '__flags' has not been declared
 extern int mkostemp (char *__template, int __flags) __nonnull ((1)) __wur;
                                            ^
/usr/include/stdlib.h:684:46: error: '__flags' has not been declared
 extern int mkostemp64 (char *__template, int __flags) __nonnull ((1)) __wur;
                                              ^
/usr/include/stdlib.h:694:45: error: '__suffixlen' has not been declared
 extern int mkostemps (char *__template, int __suffixlen, int __flags)
                                             ^
/usr/include/stdlib.h:694:62: error: '__flags' has not been declared
 extern int mkostemps (char *__template, int __suffixlen, int __flags)
                                                              ^
/usr/include/stdlib.h:706:47: error: '__suffixlen' has not been declared
 extern int mkostemps64 (char *__template, int __suffixlen, int __flags)
                                               ^
/usr/include/stdlib.h:706:64: error: '__flags' has not been declared
 extern int mkostemps64 (char *__template, int __suffixlen, int __flags)
                                                                ^
In file included from /usr/include/stdlib.h:760:0,
                 from /usr/include/c++/4.9/cstdlib:72,
                 from prog.cpp:2:
/usr/include/i386-linux-gnu/bits/stdlib-bsearch.h: In function 'void* bsearch(const void*, const void*, size_t, size_t, __compar_fn_t)':
/usr/include/i386-linux-gnu/bits/stdlib-bsearch.h:25:7: error: '__comparison' was not declared in this scope
   int __comparison;
       ^
In file included from /usr/include/c++/4.9/cstdlib:72:0,
                 from prog.cpp:2:
/usr/include/stdlib.h: At global scope:
/usr/include/stdlib.h:775:21: error: '__x' was not declared in this scope
 extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
                     ^
In file included from /usr/include/features.h:374:0,
                 from /usr/include/i386-linux-gnu/c++/4.9/bits/os_defines.h:39,
                 from /usr/include/i386-linux-gnu/c++/4.9/bits/c++config.h:430,
                 from /usr/include/c++/4.9/cstdlib:41,
                 from prog.cpp:2:
/usr/include/stdlib.h:775:26: error: expected ',' or ';' before 'throw'
 extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
                          ^
In file included from /usr/include/c++/4.9/cstdlib:72:0,
                 from prog.cpp:2:
/usr/include/stdlib.h:789:23: error: '__numer' was not declared in this scope
 extern div_t div (int __numer, int __denom)
                       ^
/usr/include/stdlib.h:789:36: error: '__denom' was not declared in this scope
 extern div_t div (int __numer, int __denom)
                                    ^
In file included from /usr/include/features.h:374:0,
                 from /usr/include/i386-linux-gnu/c++/4.9/bits/os_defines.h:39,
                 from /usr/include/i386-linux-gnu/c++/4.9/bits/c++config.h:430,
                 from /usr/include/c++/4.9/cstdlib:41,
                 from prog.cpp:2:
/usr/include/stdlib.h:790:6: error: expected ',' or ';' before 'throw'
      __THROW __attribute__ ((__const__)) __wur;
      ^
In file included from /usr/include/c++/4.9/cstdlib:72:0,
                 from prog.cpp:2:
/usr/include/stdlib.h:812:40: error: '__ndigit' has not been declared
 extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,
                                        ^
/usr/include/stdlib.h:812:54: error: expected identifier before '*' token
 extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,
                                                      ^
/usr/include/stdlib.h:813:10: error: expected identifier before '*' token
      int *__restrict __sign) __THROW __nonnull ((3, 4)) __wur;
          ^
/usr/include/stdlib.h:818:40: error: '__ndigit' has not been declared
 extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,
                                        ^
/usr/include/stdlib.h:818:54: error: expected identifier before '*' token
 extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,
                                                      ^
/usr/include/stdlib.h:819:10: error: expected identifier before '*' token
      int *__restrict __sign) __THROW __nonnull ((3, 4)) __wur;
          ^
/usr/include/stdlib.h:824:40: error: '__ndigit' has not been declared
 extern char *gcvt (double __value, int __ndigit, char *__buf)
                                        ^
/usr/include/stdlib.h:830:46: error: '__ndigit' has not been declared
 extern char *qecvt (long double __value, int __ndigit,
                                              ^
/usr/include/stdlib.h:831:11: error: expected identifier before '*' token
       int *__restrict __decpt, int *__restrict __sign)
           ^
/usr/include/stdlib.h:831:36: error: expected identifier before '*' token
       int *__restrict __decpt, int *__restrict __sign)
                                    ^
/usr/include/stdlib.h:833:46: error: '__ndigit' has not been declared
 extern char *qfcvt (long double __value, int __ndigit,
                                              ^
/usr/include/stdlib.h:834:11: error: expected identifier before '*' token
       int *__restrict __decpt, int *__restrict __sign)
           ^
/usr/include/stdlib.h:834:36: error: expected identifier before '*' token
       int *__restrict __decpt, int *__restrict __sign)
                                    ^
/usr/include/stdlib.h:836:46: error: '__ndigit' has not been declared
 extern char *qgcvt (long double __value, int __ndigit, char *__buf)
                                              ^
/usr/include/stdlib.h:842:40: error: '__ndigit' has not been declared
 extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt,
                                        ^
/usr/include/stdlib.h:842:54: error: expected identifier before '*' token
 extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt,
                                                      ^
/usr/include/stdlib.h:843:10: error: expected identifier before '*' token
      int *__restrict __sign, char *__restrict __buf,
          ^
/usr/include/stdlib.h:845:40: error: '__ndigit' has not been declared
 extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt,
                                        ^
/usr/include/stdlib.h:845:54: error: expected identifier before '*' token
 extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt,
                                                      ^
/usr/include/stdlib.h:846:10: error: expected identifier before '*' token
      int *__restrict __sign, char *__restrict __buf,
          ^
/usr/include/stdlib.h:849:46: error: '__ndigit' has not been declared
 extern int qecvt_r (long double __value, int __ndigit,
                                              ^
/usr/include/stdlib.h:850:11: error: expected identifier before '*' token
       int *__restrict __decpt, int *__restrict __sign,
           ^
/usr/include/stdlib.h:850:36: error: expected identifier before '*' token
       int *__restrict __decpt, int *__restrict __sign,
                                    ^
/usr/include/stdlib.h:853:46: error: '__ndigit' has not been declared
 extern int qfcvt_r (long double __value, int __ndigit,
                                              ^
/usr/include/stdlib.h:854:11: error: expected identifier before '*' token
       int *__restrict __decpt, int *__restrict __sign,
           ^
/usr/include/stdlib.h:854:36: error: expected identifier before '*' token
       int *__restrict __decpt, int *__restrict __sign,
                                    ^
/usr/include/stdlib.h:916:30: error: '__oflag' was not declared in this scope
 extern int posix_openpt (int __oflag) __wur;
                              ^
/usr/include/stdlib.h:924:25: error: '__fd' was not declared in this scope
 extern int grantpt (int __fd) __THROW;
                         ^
In file included from /usr/include/features.h:374:0,
                 from /usr/include/i386-linux-gnu/c++/4.9/bits/os_defines.h:39,
                 from /usr/include/i386-linux-gnu/c++/4.9/bits/c++config.h:430,
                 from /usr/include/c++/4.9/cstdlib:41,
                 from prog.cpp:2:
/usr/include/stdlib.h:924:31: error: expected ',' or ';' before 'throw'
 extern int grantpt (int __fd) __THROW;
                               ^
In file included from /usr/include/c++/4.9/cstdlib:72:0,
                 from prog.cpp:2:
/usr/include/stdlib.h:928:26: error: '__fd' was not declared in this scope
 extern int unlockpt (int __fd) __THROW;
                          ^
In file included from /usr/include/features.h:374:0,
                 from /usr/include/i386-linux-gnu/c++/4.9/bits/os_defines.h:39,
                 from /usr/include/i386-linux-gnu/c++/4.9/bits/c++config.h:430,
                 from /usr/include/c++/4.9/cstdlib:41,
                 from prog.cpp:2:
/usr/include/stdlib.h:928:32: error: expected ',' or ';' before 'throw'
 extern int unlockpt (int __fd) __THROW;
                                ^
In file included from /usr/include/c++/4.9/cstdlib:72:0,
                 from prog.cpp:2:
/usr/include/stdlib.h:933:27: error: '__fd' was not declared in this scope
 extern char *ptsname (int __fd) __THROW __wur;
                           ^
In file included from /usr/include/features.h:374:0,
                 from /usr/include/i386-linux-gnu/c++/4.9/bits/os_defines.h:39,
                 from /usr/include/i386-linux-gnu/c++/4.9/bits/c++config.h:430,
                 from /usr/include/c++/4.9/cstdlib:41,
                 from prog.cpp:2:
/usr/include/stdlib.h:933:33: error: expected ',' or ';' before 'throw'
 extern char *ptsname (int __fd) __THROW __wur;
                                 ^
In file included from /usr/include/c++/4.9/cstdlib:72:0,
                 from prog.cpp:2:
/usr/include/stdlib.h:940:27: error: '__fd' was not declared in this scope
 extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
                           ^
/usr/include/stdlib.h:940:33: error: expected primary-expression before 'char'
 extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
                                 ^
/usr/include/stdlib.h:940:53: error: expected primary-expression before '__buflen'
 extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
                                                     ^
/usr/include/stdlib.h:940:61: error: expression list treated as compound expression in initializer [-fpermissive]
 extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
                                                             ^
In file included from /usr/include/features.h:374:0,
                 from /usr/include/i386-linux-gnu/c++/4.9/bits/os_defines.h:39,
                 from /usr/include/i386-linux-gnu/c++/4.9/bits/c++config.h:430,
                 from /usr/include/c++/4.9/cstdlib:41,
                 from prog.cpp:2:
/usr/include/stdlib.h:941:6: error: expected ',' or ';' before 'throw'
      __THROW __nonnull ((2));
      ^
In file included from /usr/include/c++/4.9/cstdlib:72:0,
                 from prog.cpp:2:
/usr/include/stdlib.h:951:48: error: '__nelem' has not been declared
 extern int getloadavg (double __loadavg[], int __nelem)
                                                ^
In file included from prog.cpp:2:0:
/usr/include/c++/4.9/cstdlib:135:11: error: '::exit' has not been declared
   using ::exit;
           ^
/usr/include/c++/4.9/cstdlib: In function 'long int std::abs(long int)':
/usr/include/c++/4.9/cstdlib:166:15: error: 'long int std::abs(long int)' redeclared as different kind of symbol
   abs(long __i) { return __builtin_labs(__i); }
               ^
In file included from /usr/include/c++/4.9/cstdlib:72:0,
                 from prog.cpp:2:
/usr/include/stdlib.h:775:12: note: previous declaration 'int abs'
 extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
            ^
In file included from prog.cpp:2:0:
/usr/include/c++/4.9/cstdlib: In function 'ldiv_t std::div(long int, long int)':
/usr/include/c++/4.9/cstdlib:169:25: error: 'ldiv_t std::div(long int, long int)' redeclared as different kind of symbol
   div(long __i, long __j) { return ldiv(__i, __j); }
                         ^
In file included from /usr/include/c++/4.9/cstdlib:72:0,
                 from prog.cpp:2:
/usr/include/stdlib.h:789:14: note: previous declaration 'div_t div'
 extern div_t div (int __numer, int __denom)
              ^
In file included from prog.cpp:2:0:
/usr/include/c++/4.9/cstdlib: In function 'long long int std::abs(long long int)':
/usr/include/c++/4.9/cstdlib:174:20: error: 'long long int std::abs(long long int)' redeclared as different kind of symbol
   abs(long long __x) { return __builtin_llabs (__x); }
                    ^
In file included from /usr/include/c++/4.9/cstdlib:72:0,
                 from prog.cpp:2:
/usr/include/stdlib.h:775:12: note: previous declaration 'int abs'
 extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
            ^
In file included from prog.cpp:2:0:
/usr/include/c++/4.9/cstdlib: At global scope:
/usr/include/c++/4.9/cstdlib:207:11: error: '::_Exit' has not been declared
   using ::_Exit;
           ^
/usr/include/c++/4.9/cstdlib:243:22: error: '__gnu_cxx::_Exit' has not been declared
   using ::__gnu_cxx::_Exit;
                      ^
/usr/include/c++/4.9/cstdlib:246:22: error: 'div' is already declared in this scope
   using ::__gnu_cxx::div;
                      ^
stdout
Standard output is empty