Problem gota
User Alden
Submission Time 2025-06-18 10:06:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gota.cpp: In function ‘int main()’:
gota.cpp:3:5: error: ‘cin’ was not declared in this scope
3 | cin>>A>>N;
| ^~~
gota.cpp:4:5: error: ‘vector’ was not declared in this scope
4 | vector<int> vec(N);
| ^~~~~~
gota.cpp:4:12: error: expected primary-expression before ‘int’
4 | vector<int> vec(N);
| ^~~
gota.cpp:7:11: error: ‘vec’ was not declared in this scope
7 | { cin >> vec[i];
| ^~~
gota.cpp:14:4: error: ‘cout’ was not declared in this scope
14 | { cout<<"YES";
| ^~~~
gota.cpp:17:4: error: ‘cout’ was not declared in this scope
17 | { cout<<"NO";
| ^~~~