Submission #129534

#TimeUsernameProblemLanguageResultExecution timeMemory
129534MeloricSorting (IOI15_sorting)C++14
Compilation error
0 ms0 KiB
int l = 0; int r = ind[ia].size(); while(r-l>1){ int m = (r+l)/2; if(i+1<ind[ia][m].X)r = m; else l = m; }

Compilation message (stderr)

sorting.cpp:1:20: error: 'ind' was not declared in this scope
 int l = 0; int r = ind[ia].size();
                    ^~~
sorting.cpp:1:20: note: suggested alternative: 'int'
 int l = 0; int r = ind[ia].size();
                    ^~~
                    int
sorting.cpp:1:24: error: 'ia' was not declared in this scope
 int l = 0; int r = ind[ia].size();
                        ^~
sorting.cpp:2:9: error: expected unqualified-id before 'while'
         while(r-l>1){
         ^~~~~