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_38576643_4898.cpp:6:2: error: stray '#' in program
  int M,N,i,a[10005],j;
  ^
0_0_38576643_4898.cpp:7:2: error: stray '#' in program
  __int64 sum,s;
  ^
0_0_38576643_4898.cpp:8:2: error: stray '#' in program
  scanf("%d",&M);
  ^
0_0_38576643_4898.cpp:9:2: error: stray '#' in program
  while(M--)
  ^
0_0_38576643_4898.cpp:10:2: error: stray '#' in program
  {
  ^
0_0_38576643_4898.cpp:11:2: error: stray '#' in program
   sum=0xfffffff;
  ^
0_0_38576643_4898.cpp:11:8: error: stray '#' in program
   sum=0xfffffff;
        ^
0_0_38576643_4898.cpp:12:2: error: stray '#' in program
   cin>>N;
  ^
0_0_38576643_4898.cpp:12:8: error: stray '#' in program
   cin>>N;
        ^
0_0_38576643_4898.cpp:13:2: error: stray '#' in program
   for(i=0;i<N;i++)
  ^
0_0_38576643_4898.cpp:13:8: error: stray '#' in program
   for(i=0;i<N;i++)
        ^
0_0_38576643_4898.cpp:14:2: error: stray '#' in program
   scanf("%d",&a[i]);
  ^
0_0_38576643_4898.cpp:14:8: error: stray '#' in program
   scanf("%d",&a[i]);
        ^
0_0_38576643_4898.cpp:15:2: error: stray '#' in program
                for(i=0;i<N;i++)
  ^
0_0_38576643_4898.cpp:15:8: error: stray '#' in program
                for(i=0;i<N;i++)
        ^
0_0_38576643_4898.cpp:15:14: error: stray '#' in program
                for(i=0;i<N;i++)
              ^
0_0_38576643_4898.cpp:15:20: error: stray '#' in program
                for(i=0;i<N;i++)
                    ^
0_0_38576643_4898.cpp:15:26: error: stray '#' in program
                for(i=0;i<N;i++)
                          ^
0_0_38576643_4898.cpp:15:32: error: stray '#' in program
                for(i=0;i<N;i++)
                                ^
0_0_38576643_4898.cpp:15:38: error: stray '#' in program
                for(i=0;i<N;i++)
                                      ^
0_0_38576643_4898.cpp:15:44: error: stray '#' in program
                for(i=0;i<N;i++)
                                            ^
0_0_38576643_4898.cpp:15:50: error: stray '#' in program
                for(i=0;i<N;i++)
                                                  ^
0_0_38576643_4898.cpp:15:56: error: stray '#' in program
                for(i=0;i<N;i++)
                                                        ^
0_0_38576643_4898.cpp:15:62: error: stray '#' in program
                for(i=0;i<N;i++)
                                                              ^
0_0_38576643_4898.cpp:15:68: error: stray '#' in program
                for(i=0;i<N;i++)
                                                                    ^
0_0_38576643_4898.cpp:15:74: error: stray '#' in program
                for(i=0;i<N;i++)
                                                                          ^
0_0_38576643_4898.cpp:15:80: error: stray '#' in program
                for(i=0;i<N;i++)
                                                                                ^
0_0_38576643_4898.cpp:16:2: error: stray '#' in program
   {
  ^
0_0_38576643_4898.cpp:16:8: error: stray '#' in program
   {
        ^
0_0_38576643_4898.cpp:17:2: error: stray '#' in program
    s=0;
  ^
0_0_38576643_4898.cpp:17:8: error: stray '#' in program
    s=0;
        ^
0_0_38576643_4898.cpp:17:14: error: stray '#' in program
    s=0;
              ^
0_0_38576643_4898.cpp:18:2: error: stray '#' in program
    for(j=0;j<N;j++)
  ^
0_0_38576643_4898.cpp:18:8: error: stray '#' in program
    for(j=0;j<N;j++)
        ^
0_0_38576643_4898.cpp:18:14: error: stray '#' in program
    for(j=0;j<N;j++)
              ^
0_0_38576643_4898.cpp:19:2: error: stray '#' in program
     s=s+fabs(a[i]-a[j]);
  ^
0_0_38576643_4898.cpp:19:8: error: stray '#' in program
     s=s+fabs(a[i]-a[j]);
        ^
0_0_38576643_4898.cpp:19:14: error: stray '#' in program
     s=s+fabs(a[i]-a[j]);
              ^
0_0_38576643_4898.cpp:19:20: error: stray '#' in program
     s=s+fabs(a[i]-a[j]);
                    ^
0_0_38576643_4898.cpp:20:2: error: stray '#' in program
    if(s<sum)
  ^
0_0_38576643_4898.cpp:20:8: error: stray '#' in program
    if(s<sum)
        ^
0_0_38576643_4898.cpp:20:14: error: stray '#' in program
    if(s<sum)
              ^
0_0_38576643_4898.cpp:21:2: error: stray '#' in program
     sum=s;
  ^
0_0_38576643_4898.cpp:21:8: error: stray '#' in program
     sum=s;
        ^
0_0_38576643_4898.cpp:21:14: error: stray '#' in program
     sum=s;
              ^
0_0_38576643_4898.cpp:21:20: error: stray '#' in program
     sum=s;
                    ^
0_0_38576643_4898.cpp:22:2: error: stray '#' in program
   }
  ^
0_0_38576643_4898.cpp:22:8: error: stray '#' in program
   }
        ^
0_0_38576643_4898.cpp:23:2: error: stray '#' in program
    printf("%I64d\n",sum);
  ^
0_0_38576643_4898.cpp:23:8: error: stray '#' in program
    printf("%I64d\n",sum);
        ^
0_0_38576643_4898.cpp:23:14: error: stray '#' in program
    printf("%I64d\n",sum);
              ^
0_0_38576643_4898.cpp:24:2: error: stray '#' in program
  }
  ^
0_0_38576643_4898.cpp:25:2: error: stray '#' in program
  return 0;
  ^
0_0_38576643_4898.cpp: In function 'int main()':
0_0_38576643_4898.cpp:6:3: error: lvalue required as unary '&' operand
  int M,N,i,a[10005],j;
   ^~~
0_0_38576643_4898.cpp:7:3: error: lvalue required as unary '&' operand
  __int64 sum,s;
   ^~~
0_0_38576643_4898.cpp:8:3: error: lvalue required as unary '&' operand
  scanf("%d",&M);
   ^~~
0_0_38576643_4898.cpp:9:3: error: lvalue required as unary '&' operand
  while(M--)
   ^~~
0_0_38576643_4898.cpp:10:3: error: lvalue required as unary '&' operand
  {
   ^~~
0_0_38576643_4898.cpp:11:3: error: lvalue required as unary '&' operand
   sum=0xfffffff;
   ^~~
0_0_38576643_4898.cpp:11:9: error: lvalue required as unary '&' operand
   sum=0xfffffff;
         ^~~
0_0_38576643_4898.cpp:12:3: error: lvalue required as unary '&' operand
   cin>>N;
   ^~~
0_0_38576643_4898.cpp:12:9: error: lvalue required as unary '&' operand
   cin>>N;
         ^~~
0_0_38576643_4898.cpp:13:3: error: lvalue required as unary '&' operand
   for(i=0;i<N;i++)
   ^~~
0_0_38576643_4898.cpp:13:9: error: lvalue required as unary '&' operand
   for(i=0;i<N;i++)
         ^~~
0_0_38576643_4898.cpp:14:3: error: lvalue required as unary '&' operand
   scanf("%d",&a[i]);
   ^~~
0_0_38576643_4898.cpp:14:9: error: lvalue required as unary '&' operand
   scanf("%d",&a[i]);
         ^~~
0_0_38576643_4898.cpp:15:3: error: lvalue required as unary '&' operand
                for(i=0;i<N;i++)
   ^~~
0_0_38576643_4898.cpp:15:9: error: lvalue required as unary '&' operand
                for(i=0;i<N;i++)
         ^~~
0_0_38576643_4898.cpp:15:15: error: lvalue required as unary '&' operand
                for(i=0;i<N;i++)
               ^~~
0_0_38576643_4898.cpp:15:21: error: lvalue required as unary '&' operand
                for(i=0;i<N;i++)
                     ^~~
0_0_38576643_4898.cpp:15:27: error: lvalue required as unary '&' operand
                for(i=0;i<N;i++)
                           ^~~
0_0_38576643_4898.cpp:15:33: error: lvalue required as unary '&' operand
                for(i=0;i<N;i++)
                                 ^~~
0_0_38576643_4898.cpp:15:39: error: lvalue required as unary '&' operand
                for(i=0;i<N;i++)
                                       ^~~
0_0_38576643_4898.cpp:15:45: error: lvalue required as unary '&' operand
                for(i=0;i<N;i++)
                                             ^~~
0_0_38576643_4898.cpp:15:51: error: lvalue required as unary '&' operand
      &


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-18 14:37:39, Gzip enabled