fork download
  1. #include <stdio.h>
  2. #define MAX_N_LENGTH
  3. int main(void) {
  4. char buf[1 + MAX_N_LENGTH];
  5. buf[0] = 0;
  6. printf("%s\n", buf);
  7. // your code goes here
  8. return 0;
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:4:27: error: expected expression before ']' token
  char buf[1 + MAX_N_LENGTH];
                           ^
prog.c:4:7: error: unused variable 'buf' [-Werror=unused-variable]
  char buf[1 + MAX_N_LENGTH];
       ^
cc1: all warnings being treated as errors
stdout
Standard output is empty