diff --git a/update.cpp b/update.cpp new file mode 100644 index 0000000..991147d --- /dev/null +++ b/update.cpp @@ -0,0 +1,50 @@ +#include + +using namespace std; + +int main() +{ + int n; + cin>>n; + int arr[n]; + for(int i=0; i>arr[i]; + } + int m; + cin>>m; + int ele[m],pos[m]; + for(int i=0; i>ele[i]; + // cin>>pos[i]; + } + for(int i=0; i>pos[i]; + } + + for(int i=0; i