Problem medianstring
User AthanChee03
Submission Time 2023-11-10 15:55:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

medianstring.cpp: In function ‘int main()’:
medianstring.cpp:8:2: error: expected initializer before ‘cin’
8 | cin >> N;
| ^~~
medianstring.cpp:12:9: error: expected unqualified-id before ‘.’ token
12 | vector.push_back(input);
| ^
medianstring.cpp:14:12: error: expected unqualified-id before ‘.’ token
14 | if (vector.size()%2 == 0){
| ^
medianstring.cpp:15:18: error: missing template arguments before ‘[’ token
15 | cout << (vector[vector.size()/2]+vector[vector.size()/2-1])/2
| ^
medianstring.cpp:15:25: error: missing template arguments before ‘.’ token
15 | cout << (vector[vector.size()/2]+vector[vector.size()/2-1])/2
| ^
medianstring.cpp:15:42: error: missing template arguments before ‘[’ token
15 | cout << (vector[vector.size()/2]+vector[vector.size()/2-1])/2
|