int op=read(); if(op==1) add(read(),read()); else cout<<getSum(read(),read()); int op=read(),x=read(),y=read(); if(op==1) add(x,y); else cout<<getSum(x,y);
上面的写法不能达到下面的写法的目的,为什么呢我是真的不知道