fork download
  1. #include <iostream>
  2. int x = 0;
  3. int y = 0;
  4. int main () {
  5. if ((x++) && (y++)) {
  6. y += 2;
  7. }
  8. cout << x + y ;
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:8:1: error: ‘cout’ was not declared in this scope
 cout << x + y ;
 ^~~~
prog.cpp:8:1: note: suggested alternative:
In file included from prog.cpp:1:0:
/usr/include/c++/6/iostream:61:18: note:   ‘std::cout’
   extern ostream cout;  /// Linked to standard output
                  ^~~~
stdout
Standard output is empty