Hax*_*ify 9 c++ compiler-errors
int ii, maxnum;
for(ii=1; ii<=num-1; ii++) {
if(count[ii]>max) { // the part where I get C2872 Ambiguous Symbol error
max = count[ii]; // the part where I get C2872 Ambiguous Symbol error
maxnum = ii;
}
}
Run Code Online (Sandbox Code Playgroud)
我从来没有得到过这个错误,这令人沮丧.
Fat*_*ror 17
你的变量max与std::max().尝试使用其他名称,它应该修复该错误.