0_0_29142017_20461.cpp: In function 'int main()': 0_0_29142017_20461.cpp:124:14: error: cannot convert 'double (*)[1010]' to 'int (*)[1010]' for argument '1' to 'void smst(int (*)[1010], int)' smst(cost,n); ^