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_18339773_18632.cpp:16:1: error: 'EXTERN' does not name a type
 EXTERN void* __stdcall GetStdHandle(unsigned long); 
 ^
0_0_18339773_18632.cpp:17:1: error: 'EXTERN' does not name a type
 EXTERN void* __stdcall CreateFileA(const char*, unsigned, unsigned, void*, unsigned, unsigned, void*); 
 ^
0_0_18339773_18632.cpp:18:1: error: 'EXTERN' does not name a type
 EXTERN int __stdcall ReadFile(void*, void*, unsigned long, unsigned long*, void*); 
 ^
0_0_18339773_18632.cpp:19:1: error: 'EXTERN' does not name a type
 EXTERN int __stdcall WriteFile(void*, const void*, unsigned, unsigned *, void*); 
 ^
0_0_18339773_18632.cpp: In function 'int mwrite(void*, const void*, unsigned int)':
0_0_18339773_18632.cpp:20:141: error: 'WriteFile' was not declared in this scope
 int mwrite(void *handle, const void* caBuffer, unsigned int unToWrite) { if (WriteFile(handle, caBuffer, unToWrite, (unsigned*)&unToWrite, 0) == 0) return -1; return unToWrite; } 
                                                                                                                                             ^
0_0_18339773_18632.cpp: In function 'int getcc(void*)':
0_0_18339773_18632.cpp:21:98: error: 'ReadFile' was not declared in this scope
 int getcc(void *handle) { unsigned long len = 1; int c = 0; if (ReadFile(handle, &c, len, &len, 0) == 0) return -1; if (len < 1) return -1; return c; } 
                                                                                                  ^


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-11-23 05:21:13, Gzip enabled