#include<iostream>
#include<sys/wait.h>
#include<sys/types.h>
#include<sys/mman.h>
#include<unistd.h>
using namespace std;
int main(void) {
       
         int *shm=new int [2];
      //   int v[2]={0};
      // int *shm=v;
         int pid=fork();
         if (pid==0) {
                  *shm=15;
                  shm++;
                  *shm=20;
         } else {
              wait(NULL);
              cout<< *shm <<endl;
              shm++;
              cout<< *shm<<endl;
         }
         return 0;
}
