0_0_24223258_12442.cpp: In function 'int main()': 0_0_24223258_12442.cpp:47:49: error: too many arguments to function 'int SolveMin()' cout<<s<<" "<<sumCout-SolveMin(sum-p)<<endl; ^ 0_0_24223258_12442.cpp:18:5: note: declared here int SolveMin() ^