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_29467055_5035.cpp:4:2: error: stray '#' in program
  int t,test,i,j,a[1000];
  ^
0_0_29467055_5035.cpp:5:2: error: stray '#' in program
  scanf("%d",&test);
  ^
0_0_29467055_5035.cpp:6:2: error: stray '#' in program
  while(test--)
  ^
0_0_29467055_5035.cpp:8:2: error: stray '#' in program
  scanf("%d",&t);
  ^
0_0_29467055_5035.cpp:9:2: error: stray '#' in program
  for(i=0;i<t;i++)
  ^
0_0_29467055_5035.cpp:10:2: error: stray '#' in program
  {
  ^
0_0_29467055_5035.cpp:11:2: error: stray '#' in program
   scanf("%d",&a[i]);
  ^
0_0_29467055_5035.cpp:11:8: error: stray '#' in program
   scanf("%d",&a[i]);
        ^
0_0_29467055_5035.cpp:12:2: error: stray '#' in program
  }
  ^
0_0_29467055_5035.cpp:13:2: error: stray '#' in program
  for(i=0;i<t-1;i++)
  ^
0_0_29467055_5035.cpp:14:2: error: stray '#' in program
  for(j=1;j<t;j++)
  ^
0_0_29467055_5035.cpp:15:2: error: stray '#' in program
   if(a[j]<a[j-1])
  ^
0_0_29467055_5035.cpp:15:8: error: stray '#' in program
   if(a[j]<a[j-1])
        ^
0_0_29467055_5035.cpp:16:2: error: stray '#' in program
   {
  ^
0_0_29467055_5035.cpp:16:8: error: stray '#' in program
   {
        ^
0_0_29467055_5035.cpp:17:2: error: stray '#' in program
    int k=a[j];
  ^
0_0_29467055_5035.cpp:17:8: error: stray '#' in program
    int k=a[j];
        ^
0_0_29467055_5035.cpp:17:14: error: stray '#' in program
    int k=a[j];
              ^
0_0_29467055_5035.cpp:18:2: error: stray '#' in program
    a[j]=a[j-1];
  ^
0_0_29467055_5035.cpp:18:8: error: stray '#' in program
    a[j]=a[j-1];
        ^
0_0_29467055_5035.cpp:18:14: error: stray '#' in program
    a[j]=a[j-1];
              ^
0_0_29467055_5035.cpp:19:2: error: stray '#' in program
    a[j-1]=k;
  ^
0_0_29467055_5035.cpp:19:8: error: stray '#' in program
    a[j-1]=k;
        ^
0_0_29467055_5035.cpp:19:14: error: stray '#' in program
    a[j-1]=k;
              ^
0_0_29467055_5035.cpp:20:2: error: stray '#' in program
   }
  ^
0_0_29467055_5035.cpp:20:8: error: stray '#' in program
   }
        ^
0_0_29467055_5035.cpp:22:2: error: stray '#' in program
  {
  ^
0_0_29467055_5035.cpp:23:2: error: stray '#' in program
  printf("%d ",a[i]); 
  ^
0_0_29467055_5035.cpp:23:27: error: stray '#' in program
  printf("%d ",a[i]); 
                           ^
0_0_29467055_5035.cpp:24:2: error: stray '#' in program
  }
  ^
0_0_29467055_5035.cpp:25:2: error: stray '#' in program
  printf("%d\n",a[t-1]);
  ^
0_0_29467055_5035.cpp: In function 'int main()':
0_0_29467055_5035.cpp:4:3: error: lvalue required as unary '&' operand
  int t,test,i,j,a[1000];
   ^
0_0_29467055_5035.cpp:5:3: error: lvalue required as unary '&' operand
  scanf("%d",&test);
   ^
0_0_29467055_5035.cpp:6:3: error: lvalue required as unary '&' operand
  while(test--)
   ^
0_0_29467055_5035.cpp:8:3: error: lvalue required as unary '&' operand
  scanf("%d",&t);
   ^
0_0_29467055_5035.cpp:9:3: error: lvalue required as unary '&' operand
  for(i=0;i<t;i++)
   ^
0_0_29467055_5035.cpp:10:3: error: lvalue required as unary '&' operand
  {
   ^
0_0_29467055_5035.cpp:11:3: error: lvalue required as unary '&' operand
   scanf("%d",&a[i]);
   ^
0_0_29467055_5035.cpp:11:9: error: lvalue required as unary '&' operand
   scanf("%d",&a[i]);
         ^
0_0_29467055_5035.cpp:12:3: error: lvalue required as unary '&' operand
  }
   ^
0_0_29467055_5035.cpp:13:3: error: lvalue required as unary '&' operand
  for(i=0;i<t-1;i++)
   ^
0_0_29467055_5035.cpp:14:3: error: lvalue required as unary '&' operand
  for(j=1;j<t;j++)
   ^
0_0_29467055_5035.cpp:15:3: error: lvalue required as unary '&' operand
   if(a[j]<a[j-1])
   ^
0_0_29467055_5035.cpp:15:9: error: lvalue required as unary '&' operand
   if(a[j]<a[j-1])
         ^
0_0_29467055_5035.cpp:16:3: error: lvalue required as unary '&' operand
   {
   ^
0_0_29467055_5035.cpp:16:9: error: lvalue required as unary '&' operand
   {
         ^
0_0_29467055_5035.cpp:17:3: error: lvalue required as unary '&' operand
    int k=a[j];
   ^
0_0_29467055_5035.cpp:17:9: error: lvalue required as unary '&' operand
    int k=a[j];
         ^
0_0_29467055_5035.cpp:17:15: error: lvalue required as unary '&' operand
    int k=a[j];
               ^
0_0_29467055_5035.cpp:18:3: error: lvalue required as unary '&' operand
    a[j]=a[j-1];
   ^
0_0_29467055_5035.cpp:18:9: error: lvalue required as unary '&' operand
    a[j]=a[j-1];
         ^
0_0_29467055_5035.cpp:18:15: error: lvalue required as unary '&' operand
    a[j]=a[j-1];
               ^
0_0_29467055_5035.cpp:19:3: error: lvalue required as unary '&' operand
    a[j-1]=k;
   ^
0_0_29467055_5035.cpp:19:9: error: lvalue required as unary '&' operand
    a[j-1]=k;
         ^
0_0_29467055_5035.cpp:19:15: error: lvalue required as unary '&' operand
    a[j-1]=k;
               ^
0_0_29467055_5035.cpp:20:3: error: lvalue required as unary '&' operand
   }
   ^
0_0_29467055_5035.cpp:20:9: error: lvalue required as unary '&' operand
   }
         ^
0_0_29467055_5035.cpp:22:3: error: lvalue required as unary '&' operand
  {
   ^
0_0_29467055_5035.cpp:23:3: error: lvalue required as unary '&' operand
  printf("%d ",a[i]); 
   ^
0_0_29467055_5035.cpp:23:28: error: lvalue required as unary '&' operand
  printf("%d ",a[i]); 
                            ^
0_0_29467055_5035.cpp:24:3: error: lvalue required as unary '&' operand
  }
   ^
0_0_29467055_5035.cpp:25:3: error: lvalue required as unary '&' operand
  printf("%d\n",a[t-1]);
   ^


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-09-29 23:22:43, Gzip enabled