Problem scalars
User hailice
Submission Time 2022-12-27 16:18:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

scalars.cpp: In function ‘int main()’:
scalars.cpp:5:13: error: expected ‘;’ before ‘vector’
5 | cin >> n
| ^
| ;
6 | vector<int> x;
| ~~~~~~
scalars.cpp:12:9: error: ‘x’ was not declared in this scope
12 | x.push_back(j);
| ^
scalars.cpp:19:10: error: ‘x’ was not declared in this scope
19 | sort(x.begin(), x.end());
| ^