Compiler output
prog.cpp: In function 'void citire()':
prog.cpp:14:36: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
for(int i=1;i<=n;i++) fin>>s[i]+1;
^
prog.cpp: In function 'int main()':
prog.cpp:54:9: warning: unused variable 'a' [-Wunused-variable]
int a,i,j,ind=1,maxim1=-99999,maxim2=-99999,xi,xj,k,r;
^
prog.cpp:54:57: warning: unused variable 'r' [-Wunused-variable]
int a,i,j,ind=1,maxim1=-99999,maxim2=-99999,xi,xj,k,r;
^
prog.cpp:102:24: warning: 'xj' may be used uninitialized in this function [-Wmaybe-uninitialized]
fout<<xi<<" "<<xj<<"\n"<<color<<"\n";
^
prog.cpp:102:15: warning: 'xi' may be used uninitialized in this function [-Wmaybe-uninitialized]
fout<<xi<<" "<<xj<<"\n"<<color<<"\n";
^