#include <iostream> using namespace std; struct enclose { struct inner { void f(int i); }; void inner::f(int i) {} }; int main() { // your code goes here return 0; }
Standard input is empty
prog.cpp:8:24: error: cannot define member function 'enclose::inner::f' within 'enclose' void inner::f(int i) {} ^
Standard output is empty