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

Help me!帮我看看,我把什么都去掉了,只留下输入,怎么还会RUNTIME ERROR

Posted by maths at 2005-10-14 21:45:05 on Problem 2653
#include <stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct {	
	double x1,y1,x2,y2;
}linear;
int main(void)
{	linear pa[100100];
	int n,i,j;
	while(1)
	{	scanf("%d",&n);
		if(n==0)
			break;
		for(i=0;i<n;i++)
			scanf("%lf%lf%lf%lf",&(pa[i].x1),&(pa[i].y1),&(pa[i].x2),&(pa[i].y2));		
		printf(".\n");
	}
	return 0;
}

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