Problem arrayfind
User Codebreaker
Submission Time 2025-04-11 12:29:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:5:5: error: ‘ios_base’ has not been declared
5 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
arrayfind.cpp:6:5: error: ‘cin’ was not declared in this scope
6 | cin.tie(NULL);
| ^~~
arrayfind.cpp:6:13: error: ‘NULL’ was not declared in this scope
6 | cin.tie(NULL);
| ^~~~
arrayfind.cpp:1:1: note: ‘NULL’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
+++ |+#include <cstddef>
1 | include <bits/stdc++.h>
arrayfind.cpp:9:5: error: ‘vector’ was not declared in this scope
9 | vector<long long> arr(x);
| ^~~~~~
arrayfind.cpp:9:12: error: expected primary-expression before ‘long’
9 | vector<long long> arr(x);