Problem medianstring
User angei
Submission Time 2025-08-02 12:17:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

medianstring.cpp: In function ‘int main()’:
medianstring.cpp:3:5: error: ‘cin’ was not declared in this scope
3 | cin >> N; // Read the length of the sequence
| ^~~
medianstring.cpp:5:5: error: ‘vector’ was not declared in this scope
5 | vector<int> numbers(N);
| ^~~~~~
medianstring.cpp:5:12: error: expected primary-expression before ‘int’
5 | vector<int> numbers(N);
| ^~~
medianstring.cpp:7:16: error: ‘numbers’ was not declared in this scope
7 | cin >> numbers[i]; // Read each number
| ^~~~~~~
medianstring.cpp:10:10: error: ‘numbers’ was not declared in this scope
10 | sort(numbers.begin(), numbers.end()); // Sort the sequence
| ^~~~~~~
medianstring.cpp:10:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
10 | sort(numbers.begin(), numbers.end()); // Sort the sequen