#include<bits/stdc++.h>
using namespace std;
class A {
public:
    A() { cout << "Constructor\n"; }
};
int main()
{
	//A* a1 = (A*)malloc(sizeof(A));  // ❌ constructor NOT called
	A* a2 = new A();  
	int* p = new int; // throws std::bad_alloc
}