fork download
  1. All the examples are moved to github URL 'https://g...content-available-to-author-only...b.com/dztall/ccr_examples'
  2.  
  3. Run fetch_mobilec_examples.c script to fetch it to local folder.
  4. #include <stdio.h>
  5. {int max1=max2=i=0;
  6. int kek = [1, 97, -2, 52 , -17, 1, 0, 10];
  7. for(i=1, i<=(sizeof(kek)/sizeof(int)),i++):
  8. {
  9. max1=max(max1+kek[i],0);
  10. max2=max(max1,max2);
  11. }
  12. printf("%d\",max2);
  13. }
  14.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:1: error: unknown type name ‘All’
 All the examples are moved to github URL 'https://github.com/dztall/ccr_examples'
 ^~~
prog.c:1:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘examples’
 All the examples are moved to github URL 'https://github.com/dztall/ccr_examples'
         ^~~~~~~~
prog.c:1:9: error: unknown type name ‘examples’
prog.c:1:42: warning: character constant too long for its type
 All the examples are moved to github URL 'https://github.com/dztall/ccr_examples'
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:43,
                 from prog.c:4:
/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:4:
/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:4:
/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:4:
/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:4:
/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:4:
/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:4:
/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:4:
/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:4:
/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: error: expected identifier or ‘(’ before ‘{’ token
 {int max1=max2=i=0;
 ^
prog.c:12:8: warning: missing terminating " character
 printf("%d\",max2);
        ^
prog.c:12:8: error: missing terminating " character
 printf("%d\",max2);
        ^~~~~~~~~~~~
stdout
Standard output is empty