0

Why doesn't this code work?

In this exercise, I have to do a matrix whose elements in the position i,j are (i)!+(j)!. It gives me a problem with the function that I have defined out of the main. What did I wrong? https://code.sololearn.com/cJMk0v20y3ww/?ref=app

17th Jan 2020, 1:12 AM
Salvatore Di Lorenzo
Salvatore Di Lorenzo - avatar
4 Réponses
+ 2
Salvatore Di Lorenzo Please include your actual code link in question not as a tag to the question. https://code.sololearn.com/cJMk0v20y3ww/?ref=app
17th Jan 2020, 3:27 AM
BroFar
BroFar - avatar
+ 2
Salvatore Di Lorenzo Include the link description.. By the way.. You are allocating size for M[i] from 0 to rig-1 But you are accessing 1 to rig values.. M[rig] is uninitialized memory, not acceesible..
17th Jan 2020, 1:49 PM
Jayakrishna 🇮🇳
+ 1
Right, that was the problem
18th Jan 2020, 7:40 PM
Salvatore Di Lorenzo
Salvatore Di Lorenzo - avatar
0
Salvatore Di Lorenzo the liNk does not refer to the code.
17th Jan 2020, 1:53 AM
Akash
Akash - avatar