Advertisement
bogolyubskiyalexey

Untitled

Apr 18th, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <vector>
  2. #include <iostream>
  3. std::vector<int> v;
  4. void f() {
  5.     v[-10] = 10;
  6. }
  7.  
  8. class G {
  9. public:
  10.     G(int v) { std::cout << v << std::endl; }
  11. };
  12.  
  13. class T : public G {
  14. public:
  15.     T(int A)
  16.         : G(a)
  17.         , a(A)
  18.     {}
  19. private:
  20.     int a;
  21. };
  22.  
  23. int main() {
  24.     auto t = T(10);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement