Compiler output
prog.cpp: In function 'int main(int, char**)':
prog.cpp:30:20: warning: array subscript has type 'char' [-Wchar-subscripts]
var_name[ch]=t;
^
prog.cpp:33:40: warning: array subscript has type 'char' [-Wchar-subscripts]
cin.getline( values[var_name[ch]] ,100, '\n' ) ;
^
prog.cpp:33:41: warning: array subscript has type 'char' [-Wchar-subscripts]
cin.getline( values[var_name[ch]] ,100, '\n' ) ;
^
prog.cpp:50:59: warning: array subscript has type 'char' [-Wchar-subscripts]
if( P[i] == 's' ) cout << values[var_name[P[p]] ];
^
prog.cpp:50:61: warning: array subscript has type 'char' [-Wchar-subscripts]
if( P[i] == 's' ) cout << values[var_name[P[p]] ];
^
prog.cpp:61:59: warning: array subscript has type 'char' [-Wchar-subscripts]
printf(buff, trf( values[var_name[P[p]]] ) ) ;
^
prog.cpp:61:60: warning: array subscript has type 'char' [-Wchar-subscripts]
printf(buff, trf( values[var_name[P[p]]] ) ) ;
^
prog.cpp:63:59: warning: array subscript has type 'char' [-Wchar-subscripts]
printf(buff, trd( values[var_name[P[p]]] ) ) ;
^
prog.cpp:63:60: warning: array subscript has type 'char' [-Wchar-subscripts]
printf(buff, trd( values[var_name[P[p]]] ) ) ;
^
prog.cpp: At global scope:
prog.cpp:18:15: warning: unused parameter 'argc' [-Wunused-parameter]
int main( int argc, char ** argv ){
^
prog.cpp:18:29: warning: unused parameter 'argv' [-Wunused-parameter]
int main( int argc, char ** argv ){
^