fork download
  1. #include <stdio.h>
  2.  
  3. int main{
  4.  
  5. int a[10] ={};
  6. printf("%d", &a[1]);
  7. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:3:1: warning: variable named 'main' with external linkage has undefined behavior [-Wmain]
int main{
^
prog.c:3:9: error: expected ';' after top level declarator
int main{
        ^
        ;
1 warning and 1 error generated.
stdout
Standard output is empty