From 7db4642f463244fdbacd2b20f261398c9de38fd9 Mon Sep 17 00:00:00 2001 From: Oskar Date: Tue, 15 Oct 2024 17:05:33 +0200 Subject: more --- 9p24.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 9p24.cpp (limited to '9p24.cpp') 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 +#include + +/* + * + * 9.24 + * + * + */ + +int main () { + + std::vector 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; +} -- cgit v1.2.3