I am trying to solve a execise, which amis to find the **Last Digit of a Large Fibonacci Number**, and I try to search for others' solution, and I find one here: <https://www.geeksforgeeks.org/program-find-last-digit-nth-fibonnaci-number/>, then I copy and paste the method 2, and I just changed the `ll f[60] = {0};` to `ll f[60];` but this doesn't work properly on CLion, my test code
`int n; std:cin>>n;`
`

```
for (int i = 0; i < n; i++) {
    std::cout << findLastDigit(i) << '\n';
}

return 0;

```

}` the error: SIGSEGV (Segmentation fault). Could someone give me a hint or reference or something?