Read one integer
int n;
cin >> n;n = int(input())You do not need a full grammar course first. Input, output, loops, conditions, and arrays are enough to begin most starter problems.
int n;
cin >> n;n = int(input())vector<int> a(n);
for (int i = 0; i < n; i++) cin >> a[i];a = list(map(int, input().split()))cout << answer << '\n';print(answer)if (x >= k) {
answer++;
}if x >= k:
answer += 1for (int x : a) {
total += x;
}for x in a:
total += xsort(a.begin(), a.end());a.sort()