fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. #define f(x, y, z) g(x), g(y), g(z)
  6.  
  7. #define g(x) x
  8. vector<int> bagrinho = {f(1
  9. #undef g
  10. #define g(x) x+10
  11. , g(2)
  12. #undef g
  13. #define g(x) x+100
  14. , 3)};
  15. #undef g
  16.  
  17. int main() {
  18. for (auto kakoi : bagrinho) {
  19. cout << kakoi << endl;
  20. }
  21. cout << endl;
  22. return 0;
  23. }
Success #stdin #stdout 0s 4384KB
stdin
Standard input is empty
stdout
101
202
103