input/code.cpp: In function 'int main()':
input/code.cpp:5:2: error: 'ios_base' has not been declared
ios_base::sync_with_stdio(false);
^~~~~~~~
input/code.cpp:6:2: error: 'cin' was not declared in this scope
cin.tie(NULL);
^~~
input/code.cpp:6:2: note: suggested alternative: 'main'
cin.tie(NULL);
^~~
main
input/code.cpp:6:10: error: 'NULL' was not declared in this scope
cin.tie(NULL);
^~~~
input/code.cpp:26:26: error: 'min' was not declared in this scope
for (int j = i+1; j <= min(i+d[i],n); j++) {
^~~
input/code.cpp:26:26: note: suggested alternative: 'main'
for (int j = i+1; j <= min(i+d[i],n); j++) {
^~~
main
input/code.cpp:36:2: error: 'cout' was not declared in this scope
cout << v[n];
^~~~