fork download
  1. include <stdio.h>
  2. #include<stdlib.h>
  3. int main ()
  4. {
  5. int num1,num2,num3;
  6.  
  7. printf("introduzca el primer numero");
  8. scanf("%d",&num1);
  9. printf("introduzca el segundo numero");
  10. scanf("%d",&num2);
  11.  
  12. num3=num1+num2;
  13. printf("la suma es %d \n", num3);
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:1: error: 'include' does not name a type
 include <stdio.h>
 ^
In file included from prog.cpp:2:0:
/usr/include/stdlib.h:139:8: error: 'size_t' does not name a type
 extern size_t __ctype_get_mb_cur_max (void) __THROW __wur;
        ^
In file included from prog.cpp:2:0:
/usr/include/stdlib.h:331:4: error: 'size_t' has not been declared
    size_t __statelen) __THROW __nonnull ((2));
    ^
/usr/include/stdlib.h:361:4: error: 'size_t' has not been declared
    size_t __statelen,
    ^
/usr/include/stdlib.h:466:22: error: 'size_t' was not declared in this scope
 extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
                      ^
In file included from /usr/include/features.h:374:0,
                 from /usr/include/stdlib.h:24,
                 from prog.cpp:2:
/usr/include/stdlib.h:466:37: error: expected ',' or ';' before 'throw'
 extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
                                     ^
In file included from prog.cpp:2:0:
/usr/include/stdlib.h:468:22: error: 'size_t' was not declared in this scope
 extern void *calloc (size_t __nmemb, size_t __size)
                      ^
/usr/include/stdlib.h:468:38: error: 'size_t' was not declared in this scope
 extern void *calloc (size_t __nmemb, size_t __size)
                                      ^
/usr/include/stdlib.h:468:51: error: expression list treated as compound expression in initializer [-fpermissive]
 extern void *calloc (size_t __nmemb, size_t __size)
                                                   ^
In file included from /usr/include/features.h:374:0,
                 from /usr/include/stdlib.h:24,
                 from prog.cpp:2:
/usr/include/stdlib.h:469:6: error: expected ',' or ';' before 'throw'
      __THROW __attribute_malloc__ __wur;
      ^
In file included from prog.cpp:2:0:
/usr/include/stdlib.h:480:36: error: 'size_t' has not been declared
 extern void *realloc (void *__ptr, size_t __size)
                                    ^
In file included from /usr/include/stdlib.h:492:0,
                 from prog.cpp:2:
/usr/include/alloca.h:32:22: error: 'size_t' was not declared in this scope
 extern void *alloca (size_t __size) __THROW;
                      ^
In file included from /usr/include/features.h:374:0,
                 from /usr/include/stdlib.h:24,
                 from prog.cpp:2:
/usr/include/alloca.h:32:37: error: expected ',' or ';' before 'throw'
 extern void *alloca (size_t __size) __THROW;
                                     ^
In file included from prog.cpp:2:0:
/usr/include/stdlib.h:498:22: error: 'size_t' was not declared in this scope
 extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur;
                      ^
In file included from /usr/include/features.h:374:0,
                 from /usr/include/stdlib.h:24,
                 from prog.cpp:2:
/usr/include/stdlib.h:498:37: error: expected ',' or ';' before 'throw'
 extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur;
                                     ^
In file included from prog.cpp:2:0:
/usr/include/stdlib.h:503:45: error: 'size_t' has not been declared
 extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
                                             ^
/usr/include/stdlib.h:503:65: error: 'size_t' has not been declared
 extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
                                                                 ^
/usr/include/stdlib.h:509:29: error: 'size_t' was not declared in this scope
 extern void *aligned_alloc (size_t __alignment, size_t __size)
                             ^
/usr/include/stdlib.h:509:49: error: 'size_t' was not declared in this scope
 extern void *aligned_alloc (size_t __alignment, size_t __size)
                                                 ^
/usr/include/stdlib.h:509:62: error: expression list treated as compound expression in initializer [-fpermissive]
 extern void *aligned_alloc (size_t __alignment, size_t __size)
                                                              ^
In file included from /usr/include/features.h:374:0,
                 from /usr/include/stdlib.h:24,
                 from prog.cpp:2:
/usr/include/stdlib.h:510:6: error: expected ',' or ';' before 'throw'
      __THROW __attribute_malloc__ __attribute_alloc_size__ ((2)) __wur;
      ^
In file included from prog.cpp:2:0:
/usr/include/stdlib.h:756:9: error: 'size_t' has not been declared
         size_t __nmemb, size_t __size, __compar_fn_t __compar)
         ^
/usr/include/stdlib.h:756:25: error: 'size_t' has not been declared
         size_t __nmemb, size_t __size, __compar_fn_t __compar)
                         ^
In file included from /usr/include/stdlib.h:760:0,
                 from prog.cpp:2:
/usr/include/i386-linux-gnu/bits/stdlib-bsearch.h:20:49: error: 'size_t' has not been declared
 bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size,
                                                 ^
/usr/include/i386-linux-gnu/bits/stdlib-bsearch.h:20:65: error: 'size_t' has not been declared
 bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size,
                                                                 ^
/usr/include/i386-linux-gnu/bits/stdlib-bsearch.h: In function 'void* bsearch(const void*, const void*, int, int, __compar_fn_t)':
/usr/include/i386-linux-gnu/bits/stdlib-bsearch.h:23:3: error: 'size_t' was not declared in this scope
   size_t __l, __u, __idx;
   ^
/usr/include/i386-linux-gnu/bits/stdlib-bsearch.h:27:3: error: '__l' was not declared in this scope
   __l = 0;
   ^
/usr/include/i386-linux-gnu/bits/stdlib-bsearch.h:28:3: error: '__u' was not declared in this scope
   __u = __nmemb;
   ^
/usr/include/i386-linux-gnu/bits/stdlib-bsearch.h:31:7: error: '__idx' was not declared in this scope
       __idx = (__l + __u) / 2;
       ^
In file included from prog.cpp:2:0:
/usr/include/stdlib.h: At global scope:
/usr/include/stdlib.h:765:34: error: 'size_t' has not been declared
 extern void qsort (void *__base, size_t __nmemb, size_t __size,
                                  ^
/usr/include/stdlib.h:765:50: error: 'size_t' has not been declared
 extern void qsort (void *__base, size_t __nmemb, size_t __size,
                                                  ^
/usr/include/stdlib.h:768:36: error: 'size_t' has not been declared
 extern void qsort_r (void *__base, size_t __nmemb, size_t __size,
                                    ^
/usr/include/stdlib.h:768:52: error: 'size_t' has not been declared
 extern void qsort_r (void *__base, size_t __nmemb, size_t __size,
                                                    ^
/usr/include/stdlib.h:844:6: error: 'size_t' has not been declared
      size_t __len) __THROW __nonnull ((3, 4, 5));
      ^
/usr/include/stdlib.h:847:6: error: 'size_t' has not been declared
      size_t __len) __THROW __nonnull ((3, 4, 5));
      ^
/usr/include/stdlib.h:851:31: error: 'size_t' has not been declared
       char *__restrict __buf, size_t __len)
                               ^
/usr/include/stdlib.h:855:31: error: 'size_t' has not been declared
       char *__restrict __buf, size_t __len)
                               ^
/usr/include/stdlib.h:863:36: error: 'size_t' has not been declared
 extern int mblen (const char *__s, size_t __n) __THROW;
                                    ^
/usr/include/stdlib.h:867:34: error: 'size_t' has not been declared
      const char *__restrict __s, size_t __n) __THROW;
                                  ^
/usr/include/stdlib.h:874:8: error: 'size_t' does not name a type
 extern size_t mbstowcs (wchar_t *__restrict  __pwcs,
        ^
/usr/include/stdlib.h:877:8: error: 'size_t' does not name a type
 extern size_t wcstombs (char *__restrict __s,
        ^
/usr/include/stdlib.h:940:46: error: 'size_t' has not been declared
 extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
                                              ^
prog.cpp: In function 'int main()':
prog.cpp:7:37: error: 'printf' was not declared in this scope
 printf("introduzca el primer numero");
                                     ^
prog.cpp:8:17: error: 'scanf' was not declared in this scope
 scanf("%d",&num1);
                 ^
stdout
Standard output is empty