| Problem | gotoschool |
|---|---|
| User | jiazethesigma |
| Submission Time | 2025-12-07 15:06:02 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
gotoschool.cpp: In function ‘int main()’:
gotoschool.cpp:17:23: error: expected ‘;’ before ‘for’
17 | sort(a, a + n, sortt)
| ^
| ;
18 | for(int i=0;i<n;i++)
| ~~~
gotoschool.cpp:18:14: error: ‘i’ was not declared in this scope
18 | for(int i=0;i<n;i++)
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from gotoschool.cpp:1:
/usr/include/c++/9/bits/stl_algo.h: In instantiation of ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int (*)[2]; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(int*, int*)>]’:
/usr/include/c++/9/bits/stl_algo.h:1890:25: required from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [w