fork download
  1. #include <iostream>
  2. using namespace std;
  3. extern int ext;
  4. void printExt()
  5. {
  6. std::cout<<ext;
  7. }
  8.  
  9. int ext = 10;
  10. int main() {
  11. // your code goes here
  12. printExt();
  13. return 0;
  14. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
10