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

In file included from 0_0_10784010_11939.cpp:1:
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/unistd.h:10:16: io.h: No such file or directory
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/unistd.h:11:21: process.h: No such file or directory
In file included from 0_0_10784010_11939.cpp:1:
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/unistd.h:37: error: `off_t' has not been declared
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/unistd.h:38: error: expected constructor, destructor, or type conversion before "int"
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/unistd.h:38: error: expected `,' or `;' before "int"
0_0_10784010_11939.cpp:4:21: pthread.h: No such file or directory
0_0_10784010_11939.cpp:5:23: semaphore.h: No such file or directory
0_0_10784010_11939.cpp:7:21: windows.h: No such file or directory
0_0_10784010_11939.cpp:8:17: dos.h: No such file or directory
0_0_10784010_11939.cpp:15: error: `sem_t' does not name a type
0_0_10784010_11939.cpp:16: error: `sem_t' does not name a type
0_0_10784010_11939.cpp:17: error: `pthread_mutex_t' does not name a type
0_0_10784010_11939.cpp: In function `void* product()':
0_0_10784010_11939.cpp:27: error: `empty_sem' undeclared (first use this function)
0_0_10784010_11939.cpp:27: error: (Each undeclared identifier is reported only once for each function it appears in.)
0_0_10784010_11939.cpp:27: error: `sem_wait' undeclared (first use this function)
0_0_10784010_11939.cpp:28: error: `mutex' undeclared (first use this function)
0_0_10784010_11939.cpp:28: error: `pthread_mutex_lock' undeclared (first use this function)
0_0_10784010_11939.cpp:35: error: `pthread_mutex_unlock' undeclared (first use this function)
0_0_10784010_11939.cpp:36: error: `full_sem' undeclared (first use this function)
0_0_10784010_11939.cpp:36: error: `sem_post' undeclared (first use this function)
0_0_10784010_11939.cpp: In function `void* purchase()':
0_0_10784010_11939.cpp:42: error: `full_sem' undeclared (first use this function)
0_0_10784010_11939.cpp:42: error: `sem_wait' undeclared (first use this function)
0_0_10784010_11939.cpp:43: error: `mutex' undeclared (first use this function)
0_0_10784010_11939.cpp:43: error: `pthread_mutex_lock' undeclared (first use this function)
0_0_10784010_11939.cpp:50: error: `pthread_mutex_unlock' undeclared (first use this function)
0_0_10784010_11939.cpp:51: error: `empty_sem' undeclared (first use this function)
0_0_10784010_11939.cpp:51: error: `sem_post' undeclared (first use this function)
0_0_10784010_11939.cpp: In function `int main()':
0_0_10784010_11939.cpp:55: error: `pthread_t' undeclared (first use this function)
0_0_10784010_11939.cpp:55: error: expected `;' before "pro"
0_0_10784010_11939.cpp:56: error: expected `;' before "pur"
0_0_10784010_11939.cpp:57: error: `empty_sem' undeclared (first use this function)
0_0_10784010_11939.cpp:57: error: `sem_init' undeclared (first use this function)
0_0_10784010_11939.cpp:57: error: `full_sem' undeclared (first use this function)
0_0_10784010_11939.cpp:57: error: `mutex' undeclared (first use this function)
0_0_10784010_11939.cpp:57: error: `pthread_mutex_init' undeclared (first use this function)
0_0_10784010_11939.cpp:67: error: `pro' undeclared (first use this function)
0_0_10784010_11939.cpp:67: error: `pthread_create' undeclared (first use this function)
0_0_10784010_11939.cpp:73: error: `pur' undeclared (first use this function)
0_0_10784010_11939.cpp:79: error: `pthread_join' undeclared (first use this function)


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-12-02 15:22:17, Gzip enabled