- Owner
- Stanislav Ivanov
- Problem
- Frame
- Source
- 1.25KB
- Result
- Wrong answer
Compiler output
prog.cpp: In function 'bool can(std::vector<int>, int)': prog.cpp:8:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<v.size(); ++i){ ^ prog.cpp:11:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(rest > 1 || (rest == 1 && i==v.size()-1) ){ ^ prog.cpp:14:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(rest == 0 && i<v.size()-1){ ^
Results
Test number Result Time 1 Ok 0.2457s 2 Wrong answer 0.0604s