fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class test {
  5. public:
  6. int a;
  7.  
  8. void funkcja (int wartosc = a) {}
  9. };
  10.  
  11. int main() {
  12. // your code goes here
  13. return 0;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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) {}
                              ^
stdout
Standard output is empty