fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int number = 10;
  5.  
  6. int sum(){
  7. return number + number;
  8. }
  9.  
  10. int main() {
  11. // your code goes here
  12. cout << sum() << "\n";
  13. cout << number;
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5292KB
stdin
Standard input is empty
stdout
20
10