fork(3) download
  1. #include <tuple>
  2.  
  3.  
  4. std::pair<int, int> get_pont() { return { 1, 3 }; }
  5.  
  6.  
  7.  
  8. int main() {
  9. //elsewhere
  10. int x, y;
  11. std::tie(x,y)=get_point();
  12. return 0;
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:11:29: error: ‘get_point’ was not declared in this scope
     std::tie(x,y)=get_point();
                             ^
stdout
Standard output is empty