fork download
  1. #include <stdio.h>
  2. int foo(){
  3. return 1;
  4. }
  5. int main(void) {
  6. static int q = foo();
  7. return 0;
  8. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:6: error: initializer element is not constant
prog.c:6: warning: unused variable ‘q’
stdout

Standard output is empty