fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b, c;
  6.  
  7. a = { b = 10; };
  8. return 0;
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:7:14: error: expected ‘}’ before ‘;’ token
  a = { b = 10; };
              ^
prog.cpp:7:14: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
prog.cpp:5:12: warning: unused variable ‘c’ [-Wunused-variable]
  int a, b, c;
            ^
prog.cpp: At global scope:
prog.cpp:8:2: error: expected unqualified-id before ‘return’
  return 0;
  ^
prog.cpp:9:1: error: expected declaration before ‘}’ token
 }
 ^
stdout
Standard output is empty