diff options
Diffstat (limited to '9p24.cpp')
-rw-r--r-- | 9p24.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/9p24.cpp b/9p24.cpp new file mode 100644 index 0000000..23b0e0e --- /dev/null +++ b/9p24.cpp @@ -0,0 +1,18 @@ +#include <iostream> +#include <vector> + +/* + * + * 9.24 + * + * + */ + +int main () { + + std::vector<int> a; + std::cout << a.at(0) << std::endl; //Exception + std::cout << a.front() << std::endl; // Segfault + std::cout << a.back() << std::endl; // Segfault + return 0; +} |