fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4. std::cout << "Привет, мир!" << std::endl;
  5.  
  6. int a = 5;
  7. int b = 7;
  8. int sum = a + b;
  9.  
  10. std::cout << "Сумма " << a << " + " << b << " = " << sum << std::endl;
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
Привет, мир!
Сумма 5 + 7 = 12