prog.cpp: In function ‘int main(int, char**)’:
prog.cpp:3:33: error: ‘getpid’ was not declared in this scope
printf(" uno %d v %d\n", getpid(), v);
^
prog.cpp:3:37: error: ‘printf’ was not declared in this scope
printf(" uno %d v %d\n", getpid(), v);
^
prog.cpp:4:15: error: ‘fork’ was not declared in this scope
int p1 = fork();
^
prog.cpp:10:18: error: ‘NULL’ was not declared in this scope
execlp("ls","ls",NULL);
^~~~
prog.cpp:10:22: error: ‘execlp’ was not declared in this scope
execlp("ls","ls",NULL);
^
prog.cpp:16:7: error: ‘exit’ was not declared in this scope
exit(1);
^
prog.cpp:20:18: error: ‘NULL’ was not declared in this scope
execlp("ls","ls",NULL);
^~~~
prog.cpp:20:22: error: ‘execlp’ was not declared in this scope
execlp("ls","ls",NULL);
^
prog.cpp:26:10: error: ‘wait’ was not declared in this scope
wait(NULL);
^