Problem sort
User Slayer555
Submission Time 2023-12-21 14:33:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘int main()’:
sort.cpp:14:11: error: ‘i’ was not declared in this scope
14 | if (sort[i] > 1000000000) {
| ^
sort.cpp:15:41: error: ‘j’ was not declared in this scope
15 | for (int i = sort[i]; i > 1000000000; j++) {
| ^
sort.cpp:16:18: error: expected ‘;’ before ‘std’
16 | sort[i] %= MOD
| ^
| ;
17 | // Sorting the array in ascending order
18 | std::sort(sort, sort + N);
| ~~~
sort.cpp:26:1: error: expected ‘}’ at end of input
26 | }
| ^
sort.cpp:14:28: note: to match this ‘{’
14 | if (sort[i] > 1000000000) {
| ^
sort.cpp:26:1: error: expected ‘}’ at end of input
26 | }
| ^
sort.cpp:4:8: note: to match this ‘{’
4 | main() {
| ^