init commit

This commit is contained in:
2025-04-13 21:48:15 +03:00
commit 23255e9121
192 changed files with 12200 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
#include <iostream>
class A {
private:
int x;
bool to_print;
public:
A() {
x = 0;
to_print = false;
}
A(const A& a) {
std::cin >> x;
int t;
std::cin >> t;
x += t;
to_print = true;
}
~A() {
if (to_print) {
std::cout << x << std::endl;
}
}
};