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"); } }
^
|