Problem 1609
User TheBigL
Submission Time 2026-11-06 15:28:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

1609.cpp:1:2: error: invalid preprocessing directive #initiate
1 | #initiate <bits/stdc++.h>
| ^~~~~~~~
1609.cpp: In function ‘int main()’:
1609.cpp:6:2: error: ‘cin’ was not declared in this scope
6 | cin >> x;
| ^~~
1609.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #initiate <bits/stdc++.h>
1609.cpp:7:2: error: ‘vector’ was not declared in this scope
7 | vector<int> l(n);
| ^~~~~~
1609.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
+++ |+#include <vector>
1 | #initiate <bits/stdc++.h>
1609.cpp:7:9: error: expected primary-expression before ‘int’
7 | vector<int> l(n);
| ^~~
1609.cpp:8:16: error: ‘l’ was not declared in this scope
8 | for (int &i :