Код: Выделить всё
#include
#include
using namespace std;
int main()
{
int fd[2];
//fd[0] - read
//fd[1] -write
//declare all the variables
int n;
int countN;
int arr[3];
//prompt for the numbers called n
//there are at most 3 nums(use countN to check)
while(countN > n;
// checked whether the num is from range 1 to 15
if(n >= 1 && n
Подробнее здесь: [url]https://stackoverflow.com/questions/78369601/why-there-is-an-error-fork-was-not-declared-in-this-scope-in-my-code[/url]