Borderou de evaluare (job #1507075)

Utilizator LaurentiuILaurentiu Ioana LaurentiuI Data 21 octombrie 2015 12:16:32
Problema Inel Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:15:1: error: ‘set’ in namespace ‘std’ does not name a type std::set<int> forbidden; ^ user.cpp: In function ‘bool DoNextVal(std::vector<int>&)’: user.cpp:51:83: error: ‘forbidden’ was not declared in this scope if ((bitVec & (1 << (v[crtPos-1] +i) )) && !( used & (1<<i) ) && (i>2 || !forbidden.count(i)) ){ ^ user.cpp: In function ‘int main()’: user.cpp:105:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(v.size() == n){ ^ user.cpp:108:21: error: ‘forbidden’ was not declared in this scope forbidden.insert(v.back()); ^ user.cpp:96:9: warning: unused variable ‘maxSum’ [-Wunused-variable] int maxSum = n * (n+1) - 2; ^

Ceva nu functioneaza?