fork download
  1. #include <iostream>
  2. using namespace std;
  3. namespace first
  4. {
  5. int y = 8;
  6. }
  7. namespace second
  8. {
  9. double y = 2.1715;
  10. }
  11. int main() {
  12. // your code goes here
  13. int a;
  14. a = first :: y - second :: y;
  15. cout<<a;
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5532KB
stdin
Standard input is empty
stdout
5