F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_18218650_20349.cpp: In function 'int main()':
0_0_18218650_20349.cpp:10:19: error: 'fork' was not declared in this scope
     if((pid1=fork())<0)
                   ^
0_0_18218650_20349.cpp:14:15: error: 'exit' was not declared in this scope
         exit(1);        
               ^
0_0_18218650_20349.cpp:16:19: error: 'fork' was not declared in this scope
     if((pid1=fork())==0)
                   ^
0_0_18218650_20349.cpp:23:19: error: 'fork' was not declared in this scope
     if((pid2=fork())<0)
                   ^
0_0_18218650_20349.cpp:27:15: error: 'exit' was not declared in this scope
         exit(1);
               ^
0_0_18218650_20349.cpp:29:19: error: 'fork' was not declared in this scope
     if((pid2=fork())==0)
                   ^
0_0_18218650_20349.cpp:37:14: error: 'wait' was not declared in this scope
         wait();    //系统调用,等待子进程完成
              ^
0_0_18218650_20349.cpp:42:11: error: 'exit' was not declared in this scope
     exit(0);
           ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-07-01 20:47:45, Gzip enabled