#include <tuple> std::pair<int, int> get_pont() { return { 1, 3 }; } int main() { //elsewhere int x, y; std::tie(x,y)=get_point(); return 0; }
Standard input is empty
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();
^
Standard output is empty