fork(2) download
  1.  
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int n,ar[10000+1],p;
  6.  
  7. int main(){
  8. cin>>n;
  9. for (int i=1;i<=n*n;i++){
  10. cin>>p;
  11. ar[p]=p;
  12. }
  13. for (int i=1;i<=n*n;i++){cout<<ar[i]<<' ';}
  14. }
Success #stdin #stdout 0s 15272KB
stdin
Standard input is empty
stdout
Standard output is empty