#include <iostream> using namespace std; class test { public: int a; void funkcja (int wartosc = a) {} }; int main() { // your code goes here return 0; }
Standard input is empty
prog.cpp:6:6: error: invalid use of non-static data member 'test::a'
int a;
^
prog.cpp:8:30: error: from this location
void funkcja (int wartosc = a) {}
^
Standard output is empty