This repository has been archived on 2026-07-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
cmc/contests/8contest/1.cpp
T
2025-04-13 21:48:15 +03:00

30 lines
332 B
C++

#include <iostream>
class A {
std::string s;
public:
A(const std::string& s) : s(s) {}
~A() { std::cout << s << std::endl; }
};
void f() {
std::string s;
if (!(std::cin >> s)) {
throw 0;
}
A a(s);
f();
}
int main() {
try {
f();
}
catch (...) {
}
return 0;
}