fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <utility>
  4.  
  5. #define get(type, ...)\
  6. type __VA_ARGS__;\
  7. Read(__VA_ARGS__)
  8.  
  9. template <class T>
  10. void Read(T& item) {
  11. std::cin >> item;
  12. }
  13.  
  14. template <class T, class... Args>
  15. void Read(T& item, Args&&... args) {
  16. Read(item);
  17. Read(std::forward<Args>(args)...);
  18. }
  19.  
  20. int main() {
  21. get(int, a, b);
  22. std::cout << a << " " << b;
  23. }
Success #stdin #stdout 0s 4396KB
stdin
123 1337
stdout
123 1337