#include <iostream> using namespace std; struct A{ int x; A(): x(0){} A(int y): x(y){} }; int main() { // your code goes here A a; a(5); std::cout << a.x << std::endl; return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:14:5: error: no match for call to ‘(A) (int)’ a(5); ^
Standard output is empty