Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. pair<int, int> Get(...) {
  2. return ...;
  3. }
  4.  
  5. void Var1() {
  6. int x = Get(...).first; // RUNTIME_ERROR
  7. }
  8.  
  9. void Var2() {
  10. auto res = Get(...);
  11. int y = res.first; // OK
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement