Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
为什么在本机上编译没错误,提交上去就有错而且提示的错误完全让人摸不着头脑?3018357.2519\Main.c(19) : error C2065: 'node' : undeclared identifier 3018357.2519\Main.c(19) : error C2059: syntax error : ')' 3018357.2519\Main.c(21) : error C2059: syntax error : ')' 3018357.2519\Main.c(29) : error C2059: syntax error : ')' 19:head=(node *)malloc(sizeof(node)); 21:p=(node *)malloc(sizeof(node)); 29:q=(node *)malloc(sizeof(node)); 我用C写的,头文件包含了stdlib.h,node也已定义如下 int main() { struct node{ char c; int num; node *prior; node *next; }; ....... 实在不知其中原因,望路过的各位指点迷津。谢谢啦! Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator