#include <iostream>
using namespace std;
class karan{
int id;
public:
karan(int i) : id(i){}
};
class Dhuria{
int t;
karan k;
};
int main() {
// your code goes here
Dhuria d;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY2xhc3Mga2FyYW57CglpbnQgaWQ7CglwdWJsaWM6CglrYXJhbihpbnQgaSkgOiBpZChpKXt9Cn07CgpjbGFzcyBEaHVyaWF7CglpbnQgdDsKCWthcmFuIGs7Cn07CgppbnQgbWFpbigpIHsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCURodXJpYSBkOwoJcmV0dXJuIDA7Cn0=
prog.cpp: In function ‘int main()’:
prog.cpp:17:9: error: use of deleted function ‘Dhuria::Dhuria()’
Dhuria d;
^
prog.cpp:10:7: note: ‘Dhuria::Dhuria()’ is implicitly deleted because the default definition would be ill-formed:
class Dhuria{
^~~~~~
prog.cpp:10:7: error: no matching function for call to ‘karan::karan()’
prog.cpp:7:2: note: candidate: ‘karan::karan(int)’
karan(int i) : id(i){}
^~~~~
prog.cpp:7:2: note: candidate expects 1 argument, 0 provided
prog.cpp:4:7: note: candidate: ‘constexpr karan::karan(const karan&)’
class karan{
^~~~~
prog.cpp:4:7: note: candidate expects 1 argument, 0 provided
prog.cpp:4:7: note: candidate: ‘constexpr karan::karan(karan&&)’
prog.cpp:4:7: note: candidate expects 1 argument, 0 provided