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_16014347_26790.cpp:4:1: error: expected initializer before 'int'
 int i;  long a[3],k;  scanf("%d",&i);  while(i--)  {   scanf("%ld%ld%ld",&a[0],&a[1],&a[2]);   k=a[1]-a[2];   if(a[0]<k)    printf("advertise\n");   else if(a[0]==k)    printf("does not matter\n");   else    printf("do not advertise\n");  } } 
 ^
0_0_16014347_26790.cpp:4:28: error: expected constructor, destructor, or type conversion before '(' token
 int i;  long a[3],k;  scanf("%d",&i);  while(i--)  {   scanf("%ld%ld%ld",&a[0],&a[1],&a[2]);   k=a[1]-a[2];   if(a[0]<k)    printf("advertise\n");   else if(a[0]==k)    printf("does not matter\n");   else    printf("do not advertise\n");  } } 
                            ^
0_0_16014347_26790.cpp:4:40: error: expected unqualified-id before 'while'
 int i;  long a[3],k;  scanf("%d",&i);  while(i--)  {   scanf("%ld%ld%ld",&a[0],&a[1],&a[2]);   k=a[1]-a[2];   if(a[0]<k)    printf("advertise\n");   else if(a[0]==k)    printf("does not matter\n");   else    printf("do not advertise\n");  } } 
                                        ^
0_0_16014347_26790.cpp:4:242: error: expected declaration before '}' token
 int i;  long a[3],k;  scanf("%d",&i);  while(i--)  {   scanf("%ld%ld%ld",&a[0],&a[1],&a[2]);   k=a[1]-a[2];   if(a[0]<k)    printf("advertise\n");   else if(a[0]==k)    printf("does not matter\n");   else    printf("do not advertise\n");  } } 
                                                                                                                                                                                                                                                  ^


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-12-03 08:32:07, Gzip enabled