Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Problema2
#include <iostream> using namespace std; int main() { int n, x[101],k,nr,i; cin>>n; for(i=1;i<=n;i++) cin>>x[i]; cin>>k>>nr; if(k>n){ cout<<"pozitie depasita\n"<<n; return 0; } n++; for(i=n;i>k;i--){ x[i]=x[i-1]; } x[k]=nr; for(i=1;i<=n;i++) cout<<x[i]<<" "; return 0; }
run
|
edit
|
history
|
help
0
Q
Count of factors
Teste sobrecarga de operadores
pointer to template function
ForwardListString
Member function detection
Shultz_Lab1.CPP
krack
Microsoft - MaxEmployeeAttendence (R repititions - DP solution bitmask)
3 and 7 in a row