this is the error :
Unhandled exception at 0x00007FFD16B7FE7C in Project1.exe: Microsoft C++ exception: std::out_of_range at memory location 0x0000000B2FAFF760.
here is the code :
#include <iostream>
using namespace std;
int main() {
string word;
cin >> word;
cout << word.size() << endl;
for (int i = 0; i <= word.size(); i++)
cout << word.at(i) << endl;
return 0;
}
im also still not sure where the code breaks it, it just takes me to a weird window with A LOT OF LINES that i have no idea what they mean.
i tried debugging, rebuilding, trying some alternative ways to write the code that i know of and nothing worked, like the code is so simple HOW AM I OUT OF MEMORY XD.