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

Compile Error

arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:2:5: error: ‘ios_base’ has not been declared
2 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
arrayfind.cpp:3:5: error: ‘cin’ was not declared in this scope
3 | cin.tie(NULL);
| ^~~
arrayfind.cpp:3:13: error: ‘NULL’ was not declared in this scope
3 | cin.tie(NULL);
| ^~~~
arrayfind.cpp:1:1: note: ‘NULL’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
+++ |+#include <cstddef>
1 | int main() {
arrayfind.cpp:6:5: error: ‘vector’ was not declared in this scope
6 | vector<long long> arr(x);
| ^~~~~~
arrayfind.cpp:6:12: error: expected primary-expression before ‘long’
6 | vector<long long> arr(x);
| ^~~~
arrayfind.cpp:8:16: error: ‘arr’ was not declared in this scope
8 | cin >> arr[i];
|