Job 15135

Owner
Cheseli Rares
Problem
Lumber Jack and Sick Leaves
Contest
MindCoding 2016 Round 2 GAMELOFT (Div. 1)
Source
2.01KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:18:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 #define FOR(i, start, final) for (int i=start; i<=final; ++i)
                                                 ^
prog.cpp:53:5: note: in expansion of macro 'FOR'
     FOR(i,1,v.size() - 1) {
     ^
prog.cpp:18:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 #define FOR(i, start, final) for (int i=start; i<=final; ++i)
                                                 ^
prog.cpp:79:5: note: in expansion of macro 'FOR'
     FOR(i,0,sol.size() - 1) {
     ^
prog.cpp:18:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 #define FOR(i, start, final) for (int i=start; i<=final; ++i)
                                                 ^
prog.cpp:89:5: note: in expansion of macro 'FOR'
     FOR(i,0,sol.size() - 1) {
     ^

Results

Test numberResultTime
1Ok0.2720s
2Wrong answer0.2771s
Questions?

Sponsors Gold