what's the type definition of max? integer or long long?
change it to cout<<max<<endl; might be better

Reply via email to