#include <iostream>
struct functionReturn
{
int a;
int b;
int c;
int d;
};
struct functionReturn funct()
{
return {1,2,3,4};
}
int main() {
// your code goes here
struct functionReturn ret = funct();
std::cout << ret.a << ' ' << ret.b << ' ' << ret.c << ' ' << ret.d;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKc3RydWN0IGZ1bmN0aW9uUmV0dXJuCnsKCWludCBhOwoJaW50IGI7CglpbnQgYzsKCWludCBkOwp9OwoKc3RydWN0IGZ1bmN0aW9uUmV0dXJuIGZ1bmN0KCkKewoJcmV0dXJuIHsxLDIsMyw0fTsKfQoKCmludCBtYWluKCkgewoJLy8geW91ciBjb2RlIGdvZXMgaGVyZQoJCglzdHJ1Y3QgZnVuY3Rpb25SZXR1cm4gcmV0ID0gZnVuY3QoKTsKCQoJc3RkOjpjb3V0IDw8IHJldC5hIDw8ICcgJyA8PCByZXQuYiA8PCAnICcgPDwgcmV0LmMgPDwgJyAnIDw8IHJldC5kOwoJCgkKCXJldHVybiAwOwp9