1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #include <iostream> #include <string> using namespace std; struct A { int age; A(int x): age(x){}; A() = default; }; int main() { A test(10); cout << test.age << endl; return 0; } |
ICAgICAjaW5jbHVkZSA8aW9zdHJlYW0+CiAgICAjaW5jbHVkZSA8c3RyaW5nPgogICAgCiAgICB1c2luZyBuYW1lc3BhY2Ugc3RkOwogICAgCiAgICBzdHJ1Y3QgQQogICAgewogICAgCWludCBhZ2U7CiAgICAJCiAgICAJQShpbnQgeCk6IGFnZSh4KXt9OwogICAgCUEoKSA9IGRlZmF1bHQ7CiAgICAJCiAgICB9OwogICAgCiAgICBpbnQgbWFpbigpCiAgICB7CiAgICAJQSB0ZXN0KDEwKTsKICAgIAljb3V0IDw8IHRlc3QuYWdlIDw8IGVuZGw7CiAgICAJcmV0dXJuIDA7CiAgICB9
-
upload with new input
-
result: Success time: 0s memory: 2884 kB returned value: 0
10


