+ 1
Segmentation fault c++
This code is giving a segmentation fault but I can't figure out why I am getting the error. How can I fix it? https://code.sololearn.com/ca196a20a152
1 Odpowiedź
+ 1
At line 16: the loop goes from 1 to n. Think about what happens when i=n