fork download
  1. #include <vector>
  2. using namespace std;
  3.  
  4. struct struktura
  5. {
  6. enum enumeration {ene,due,like,fake} wyl;
  7. struct whatever {int costam; char costam2;};
  8. vector<whatever> whatever_tab;
  9. };
  10.  
  11. vector<struktura> strukt_tab;
  12.  
  13. int main()
  14. {
  15. struktura pom;
  16. pom.wyl=like;
  17. strukt_tab.push_back(pom);
  18. return 0;
  19. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:16:13: error: ‘like’ was not declared in this scope
     pom.wyl=like;
             ^
stdout
Standard output is empty