fork download
  1. // A basic C++ program template
  2.  
  3. #include <iostream> // Input-Output Stream library
  4.  
  5. using namespace std; // So we don't have to write std:: before things like cout
  6.  
  7. int main() {
  8. // Your code starts here
  9. cout << "Hello, world!" << endl;
  10.  
  11. // You can write more code below
  12. // For example: int a = 5;
  13.  
  14. return 0; // Program ends
  15. }
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
Hello, world!