a6.cpp: In function ‘test duplicate(test)’:
a6.cpp:33: error: no matching function for call to ‘test::test()’
a6.cpp:11: note: candidates are: test::test(int, int)
a6.cpp:6: note: test::test(const test&)
a6.cpp: In function ‘int main()’:
a6.cpp:43: error: no matching function for call to ‘test::test()’
a6.cpp:11: note: candidates are: test::test(int, int)
a6.cpp:6: note: test::test(const test&)
My cat says
"you have a java background.
When you declare a variable, you construct it. test a,b,c; But you haven't got a default constructor so the compiler complains
meow"