Problem razlika
User simonfalke
Submission Time 2023-02-03 15:08:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

razlika.cpp: In function ‘int main()’:
razlika.cpp:8:12: error: ‘length’ was not declared in this scope
8 | cin >> length;
| ^~~~~~
razlika.cpp:9:13: error: expected ‘;’ before ‘int’
9 | cin >> c
| ^
| ;
10 | int nums[n];
| ~~~
razlika.cpp:15:9: error: ‘nums’ was not declared in this scope
15 | nums[i] = b;
| ^~~~
razlika.cpp:18:10: error: ‘nums’ was not declared in this scope
18 | sort(nums, nums + n);
| ^~~~