fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int default = 10;
  7. cout << default*2;
  8. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:6:13: error: expected unqualified-id before 'default'
         int default = 10;
             ^
prog.cpp:7:17: error: expected primary-expression before 'default'
         cout << default*2; 
                 ^
stdout
Standard output is empty