Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <vector>
- #include <iostream>
- std::vector<int> v;
- void f() {
- v[-10] = 10;
- }
- class G {
- public:
- G(int v) { std::cout << v << std::endl; }
- };
- class T : public G {
- public:
- T(int A)
- : G(a)
- , a(A)
- {}
- private:
- int a;
- };
- int main() {
- auto t = T(10);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement