Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

为什么在本机上编译没错误,提交上去就有错而且提示的错误完全让人摸不着头脑?

Posted by lmf_ct at 2007-12-30 16:58:41 on Problem 3476
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator