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_27817742_20508.cpp:8:2: error: stray '#' in program
     double dis=0;
  ^
0_0_27817742_20508.cpp:8:9: error: stray '#' in program
     double dis=0;
         ^
0_0_27817742_20508.cpp:9:2: error: stray '#' in program
     double temp=sqrt(2.0);
  ^
0_0_27817742_20508.cpp:9:9: error: stray '#' in program
     double temp=sqrt(2.0);
         ^
0_0_27817742_20508.cpp:10:2: error: stray '#' in program
     for(int i=1;i<=x+y;i++)
  ^
0_0_27817742_20508.cpp:10:9: error: stray '#' in program
     for(int i=1;i<=x+y;i++)
         ^
0_0_27817742_20508.cpp:11:2: error: stray '#' in program
       dis+=(i*temp);
  ^
0_0_27817742_20508.cpp:11:9: error: stray '#' in program
       dis+=(i*temp);
         ^
0_0_27817742_20508.cpp:11:16: error: stray '#' in program
       dis+=(i*temp);
                ^
0_0_27817742_20508.cpp:12:2: error: stray '#' in program
     dis-=(y*temp);
  ^
0_0_27817742_20508.cpp:12:9: error: stray '#' in program
     dis-=(y*temp);
         ^
0_0_27817742_20508.cpp:13:2: error: stray '#' in program
     for(int i=0;i<x+y;i++)
  ^
0_0_27817742_20508.cpp:13:9: error: stray '#' in program
     for(int i=0;i<x+y;i++)
         ^
0_0_27817742_20508.cpp:14:2: error: stray '#' in program
       dis+=sqrt((double)i*i+(double)(i+1)*(i+1));
  ^
0_0_27817742_20508.cpp:14:9: error: stray '#' in program
       dis+=sqrt((double)i*i+(double)(i+1)*(i+1));
         ^
0_0_27817742_20508.cpp:14:16: error: stray '#' in program
       dis+=sqrt((double)i*i+(double)(i+1)*(i+1));
                ^
0_0_27817742_20508.cpp:15:2: error: stray '#' in program
     return dis;
  ^
0_0_27817742_20508.cpp:15:9: error: stray '#' in program
     return dis;
         ^
0_0_27817742_20508.cpp:19:2: error: stray '#' in program
     int t,x1,x2,y1,y2;
  ^
0_0_27817742_20508.cpp:19:9: error: stray '#' in program
     int t,x1,x2,y1,y2;
         ^
0_0_27817742_20508.cpp:20:2: error: stray '#' in program
     cin>>t;
  ^
0_0_27817742_20508.cpp:20:9: error: stray '#' in program
     cin>>t;
         ^
0_0_27817742_20508.cpp:21:2: error: stray '#' in program
     while(t--)
  ^
0_0_27817742_20508.cpp:21:9: error: stray '#' in program
     while(t--)
         ^
0_0_27817742_20508.cpp:22:2: error: stray '#' in program
     {
  ^
0_0_27817742_20508.cpp:22:9: error: stray '#' in program
     {
         ^
0_0_27817742_20508.cpp:23:2: error: stray '#' in program
         scanf("%d%d%d%d",&x1,&y1,&x2,&y2);
  ^
0_0_27817742_20508.cpp:23:9: error: stray '#' in program
         scanf("%d%d%d%d",&x1,&y1,&x2,&y2);
         ^
0_0_27817742_20508.cpp:23:16: error: stray '#' in program
         scanf("%d%d%d%d",&x1,&y1,&x2,&y2);
                ^
0_0_27817742_20508.cpp:23:23: error: stray '#' in program
         scanf("%d%d%d%d",&x1,&y1,&x2,&y2);
                       ^
0_0_27817742_20508.cpp:24:2: error: stray '#' in program
         double ans=fabs(distancen(x1,y1)-distancen(x2,y2));
  ^
0_0_27817742_20508.cpp:24:9: error: stray '#' in program
         double ans=fabs(distancen(x1,y1)-distancen(x2,y2));
         ^
0_0_27817742_20508.cpp:24:16: error: stray '#' in program
         double ans=fabs(distancen(x1,y1)-distancen(x2,y2));
                ^
0_0_27817742_20508.cpp:24:23: error: stray '#' in program
         double ans=fabs(distancen(x1,y1)-distancen(x2,y2));
                       ^
0_0_27817742_20508.cpp:25:2: error: stray '#' in program
         printf("%.3f\n",ans);
  ^
0_0_27817742_20508.cpp:25:9: error: stray '#' in program
         printf("%.3f\n",ans);
         ^
0_0_27817742_20508.cpp:25:16: error: stray '#' in program
         printf("%.3f\n",ans);
                ^
0_0_27817742_20508.cpp:25:23: error: stray '#' in program
         printf("%.3f\n",ans);
                       ^
0_0_27817742_20508.cpp:26:2: error: stray '#' in program
     }
  ^
0_0_27817742_20508.cpp:26:9: error: stray '#' in program
     }
         ^
0_0_27817742_20508.cpp:27:2: error: stray '#' in program
     return 0;
  ^
0_0_27817742_20508.cpp:27:9: error: stray '#' in program
     return 0;
         ^
0_0_27817742_20508.cpp: In function 'double distancen(int, int)':
0_0_27817742_20508.cpp:8:3: error: lvalue required as unary '&' operand
     double dis=0;
   ^
0_0_27817742_20508.cpp:8:10: error: lvalue required as unary '&' operand
     double dis=0;
          ^
0_0_27817742_20508.cpp:9:3: error: lvalue required as unary '&' operand
     double temp=sqrt(2.0);
   ^
0_0_27817742_20508.cpp:9:10: error: lvalue required as unary '&' operand
     double temp=sqrt(2.0);
          ^
0_0_27817742_20508.cpp:10:3: error: lvalue required as unary '&' operand
     for(int i=1;i<=x+y;i++)
   ^
0_0_27817742_20508.cpp:10:10: error: lvalue required as unary '&' operand
     for(int i=1;i<=x+y;i++)
          ^
0_0_27817742_20508.cpp:11:3: error: lvalue required as unary '&' operand
       dis+=(i*temp);
   ^
0_0_27817742_20508.cpp:11:10: error: lvalue required as unary '&' operand
       dis+=(i*temp);
          ^
0_0_27817742_20508.cpp:11:17: error: lvalue required as unary '&' operand
       dis+=(i*temp);
                 ^
0_0_27817742_20508.cpp:11:28: error: 'i' was not declared in this scope
       dis+=(i*temp);
                            ^
0_0_27817742_20508.cpp:12:3: error: lvalue required as unary '&' operand
     dis-=(y*temp);
   ^
0_0_27817742_20508.cpp:12:10: error: lvalue required as unary '&' operand
     dis-=(y*temp);
          ^
0_0_27817742_20508.cpp:13:3: error: lvalue required as unary '&' operand
     for(int i=0;i<x+y;i++)
   ^
0_0_27817742_20508.cpp:13:10: error: lvalue required as unary '&' operand
     for(int i=0;i<x+y;i++)
          ^
0_0_27817742_20508.cpp:14:3: error: lvalue required as unary '&' operand
       dis+=sqrt((double)i*i+(double)(i+1)*(i+1));
   ^
0_0_27817742_20508.cpp:14:10: error: lvalue required as unary '&' operand
       dis+=sqrt((double)i*i+(double)(i+1)*(i+1));
          ^
0_0_27817742_20508.cpp:14:17: error: lvalue required as unary '&' operand
       dis+=sqrt((double)i*i+(double)(i+1)*(i+1));
                 ^
0_0_27817742_20508.cpp:15:3: error: lvalue required as unary '&' operand
     return dis;
   ^
0_0_27817742_20508.cpp:15:10: error: lvalue required as unary '&' operand
     return dis;
          ^
0_0_27817742_20508.cpp: In function 'int main()':
0_0_27817742_20508.cpp:19:3: error: lvalue required as unary '&' operand
     int t,x1,x2,y1,y2;
   ^
0_0_27817742_20508.cpp:19:10: error: lvalue required as unary '&' operand
     int t,x1,x2,y1,y2;
          ^
0_0_27817742_20508.cpp:20:3: error: lvalue required as unary '&' operand
     cin>>t;
   ^
0_0_27817742_20508.cpp:20:10: error: lvalue required as unary '&' operand
     cin>>t;
          ^
0_0_27817742_20508.cpp:21:3: error: lvalue required as unary '&' operand
     while(t--)
   ^
0_0_27817742_20508.cpp:21:10: error: lvalue required as unary '&' operand
     while(t--)
          ^
0_0_27817742_20508.cpp:22:3: error: lvalue required as unary '&' operand
     {
   ^
0_0_27817742_20508.cpp:22:10: error: lvalue required as unary '&' operand
     {
          ^
0_0_27817742_20508.cpp:23:3: error: lvalue required as unary '&' operand
         scanf("%d%d%d%d",&x1,&y1,&x2,&y2);
   ^
0_0_27817742_20508.cpp:23:10: error: lvalue required as unary '&' operand
         scanf("%d%d%d%d",&x1,&y1,&x2,&y2);
          ^
0_0_27817742_20508.cpp:23:17: error: lvalue required as unary '&' operand
         scanf("%d%d%d%d",&x1,&y1,&x2,&y2);
                 ^
0_0_27817742_20508.cpp:23:24: error: lvalue required as unary '&' operand
         scanf("%d%d%d%d",&x1,&y1,&x2,&y2);
                        ^
0_0_27817742_20508.cpp:24:3: error: lvalue required as unary '&' operand
         double ans=fabs(distancen(x1,y1)-distancen(x2,y2));
   ^
0_0_27817742_20508.cpp:24:10: error: lvalue required as unary '&' operand
         double ans=fabs(distancen(x1,y1)-distancen(x2,y2));
          ^
0_0_27817742_20508.cpp:24:17: error: lvalue required as unary '&' operand
         double ans=fabs(distancen(x1,y1)-distancen(x2,y2));
                 ^
0_0_27817742_20508.cpp:24:24: error: lvalue required as unary '&' operand
         double ans=fabs(distancen(x1,y1)-distancen(x2,y2));
                        ^
0_0_27817742_20508.cpp:25:3: error: lvalue required as unary '&' operand
         printf("%.3f\n",ans);
   ^
0_0_27817742_20508.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-30 13:32:47, Gzip enabled