fork(1) download
  1. int main()
  2. {
  3. int n = 3;
  4. int arr[n] = { 1, 2, 3 };
  5. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:4:28: error: variable-sized object ‘arr’ may not be initialized
     int arr[n] = { 1, 2, 3 };
                            ^
prog.cpp:4:9: warning: unused variable ‘arr’ [-Wunused-variable]
     int arr[n] = { 1, 2, 3 };
         ^
stdout
Standard output is empty