Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- using namespace std;
- int solve(int n, vector<int> arr) {
- // Solve problem
- return 0;
- }
- int main() {
- int n; cin >> n;
- vector<int> arr;
- for(int i = 0; i < n; i++) {
- int x; cin >> x;
- arr.push_back(x);
- }
- cout << solve(n, arr) << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment