Job 19981

Owner
Karolis Kusas
Problem
CC
Contest
MindCoding 2017 Round 4 Bitdefender (Div. 1)
Source
1.77KB
Result
Time Limit Exceeded

Compiler output

prog.cpp: In function 'void Create(int, int, int)':
prog.cpp:30:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   int m = l + r >> 1;
             ^
prog.cpp:34:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   while (i < st[lc].size() || j < st[rc].size())
            ^
prog.cpp:34:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   while (i < st[lc].size() || j < st[rc].size())
                                 ^
prog.cpp:35:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (i < st[lc].size() && (j == st[rc].size() || st[lc][i] <= st[rc][j])) st[v].push_back(st[lc][i++]);
          ^
prog.cpp:35:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (i < st[lc].size() && (j == st[rc].size() || st[lc][i] <= st[rc][j])) st[v].push_back(st[lc][i++]);
                                ^
prog.cpp: In function 'int Get(int, int, int, int, int, int)':
prog.cpp:44:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   int m = l + r >> 1;
             ^

Results

Test numberResultTime
1Ok0.5893s
2Ok0.6113s
3Ok0.6326s
4Ok0.9479s
5Ok0.9388s
6Time Limit Exceeded1.5022s
Questions?

Sponsors Gold