fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int n;
  6. scanf("%d", &n);
  7.  
  8. static int a = n - 1;
  9.  
  10. return 0;
  11. }
  12.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
42
compilation info
prog.c: In function ‘main’:
prog.c:8:5: error: initializer element is not constant
     static int a = n - 1;
     ^
prog.c:8:16: error: unused variable ‘a’ [-Werror=unused-variable]
     static int a = n - 1;
                ^
cc1: all warnings being treated as errors
stdout
Standard output is empty