Compiler output
prog.cpp: In function 'int main()':
prog.cpp:51:5: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets (str + 1);
^
prog.cpp:51:18: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets (str + 1);
^
prog.cpp:74:27: warning: array subscript has type 'char' [-Wchar-subscripts]
cdp[str[h]][j] = min (cdp[str[h]][j], dp[i][j] + cost[i][str[h]]);
^
prog.cpp:74:49: warning: array subscript has type 'char' [-Wchar-subscripts]
cdp[str[h]][j] = min (cdp[str[h]][j], dp[i][j] + cost[i][str[h]]);
^
prog.cpp:74:80: warning: array subscript has type 'char' [-Wchar-subscripts]
cdp[str[h]][j] = min (cdp[str[h]][j], dp[i][j] + cost[i][str[h]]);
^
prog.cpp:75:30: warning: array subscript has type 'char' [-Wchar-subscripts]
cdp[i][str[h]] = min (cdp[i][str[h]], dp[i][j] + cost[j][str[h]]);
^
prog.cpp:75:52: warning: array subscript has type 'char' [-Wchar-subscripts]
cdp[i][str[h]] = min (cdp[i][str[h]], dp[i][j] + cost[j][str[h]]);
^
prog.cpp:75:80: warning: array subscript has type 'char' [-Wchar-subscripts]
cdp[i][str[h]] = min (cdp[i][str[h]], dp[i][j] + cost[j][str[h]]);
^
prog.cpp:77:46: warning: array subscript has type 'char' [-Wchar-subscripts]
mi = min (mi, min (cdp[str[h]][j], cdp[i][str[h]]));
^
prog.cpp:77:65: warning: array subscript has type 'char' [-Wchar-subscripts]
mi = min (mi, min (cdp[str[h]][j], cdp[i][str[h]]));
^
prog.cpp:81:24: warning: 'mi' may be used uninitialized in this function [-Wmaybe-uninitialized]
printf ("%d\n", mi);
^
/tmp/ccEObYKY.o: In function `main':
prog.cpp:(.text.startup+0x58): warning: the `gets' function is dangerous and should not be used.