0_0_25044463_6092.cpp:17:2: error: stray '#' in program
^
0_0_25044463_6092.cpp:20:2: error: stray '#' in program
bool endFlag;
^
0_0_25044463_6092.cpp:21:2: error: stray '#' in program
int u,v,p,adv,ft;
^
0_0_25044463_6092.cpp:22:2: error: stray '#' in program
while(scanf("%d %d %d",&n,&b,&c)==3){
^
0_0_25044463_6092.cpp:23:2: error: stray '#' in program
memset(has,0,sizeof(has));
^
0_0_25044463_6092.cpp:24:2: error: stray '#' in program
for(int i=0;i<n;i++) pos[i]=1;
^
0_0_25044463_6092.cpp:25:2: error: stray '#' in program
for(int i=0;i<b;i++){
^
0_0_25044463_6092.cpp:26:2: error: stray '#' in program
scanf("%d %d",&u,&v);
^
0_0_25044463_6092.cpp:27:2: error: stray '#' in program
has[u]=v;
^
0_0_25044463_6092.cpp:28:2: error: stray '#' in program
}
^
0_0_25044463_6092.cpp:29:2: error: stray '#' in program
endFlag=0;
^
0_0_25044463_6092.cpp:30:2: error: stray '#' in program
for(int i=0;i<c;i++){
^
0_0_25044463_6092.cpp:31:2: error: stray '#' in program
scanf("%d",&ft);
^
0_0_25044463_6092.cpp:32:2: error: stray '#' in program
if(endFlag){
^
0_0_25044463_6092.cpp:33:2: error: stray '#' in program
continue;
^
0_0_25044463_6092.cpp:34:2: error: stray '#' in program
}
^
0_0_25044463_6092.cpp:35:2: error: stray '#' in program
p=i%n;
^
0_0_25044463_6092.cpp:36:2: error: stray '#' in program
adv=pos[p]+ft;
^
0_0_25044463_6092.cpp:37:2: error: stray '#' in program
if(has[adv])
^
0_0_25044463_6092.cpp:38:2: error: stray '#' in program
adv=has[adv];
^
0_0_25044463_6092.cpp:39:2: error: stray '#' in program
if(adv<=100)
^
0_0_25044463_6092.cpp:40:2: error: stray '#' in program
pos[p]=adv;
^
0_0_25044463_6092.cpp:41:2: error: stray '#' in program
else
^
0_0_25044463_6092.cpp:42:2: error: stray '#' in program
pos[p]=100;
^
0_0_25044463_6092.cpp:43:2: error: stray '#' in program
if(pos[p]==100){
^
0_0_25044463_6092.cpp:44:2: error: stray '#' in program
endFlag=1;
^
0_0_25044463_6092.cpp:45:2: error: stray '#' in program
}
^
0_0_25044463_6092.cpp:46:2: error: stray '#' in program
}
^
0_0_25044463_6092.cpp:47:2: error: stray '#' in program
for(int i=0;i<n;i++)
^
0_0_25044463_6092.cpp:48:2: error: stray '#' in program
printf("Position of player %d is %d.\n",i+1,pos[i]);
^
0_0_25044463_6092.cpp:49:2: error: stray '#' in program
}
^
0_0_25044463_6092.cpp:50:2: error: stray '#' in program
return 0;
^
0_0_25044463_6092.cpp:17:3: error: expected unqualified-id before numeric constant
^
0_0_25044463_6092.cpp:17:3: error: expected constructor, destructor, or type conversion before numeric constant
0_0_25044463_6092.cpp: In function 'int main()':
0_0_25044463_6092.cpp:20:3: error: lvalue required as unary '&' operand
bool endFlag;
^
0_0_25044463_6092.cpp:21:3: error: lvalue required as unary '&' operand
int u,v,p,adv,ft;
^
0_0_25044463_6092.cpp:22:3: error: lvalue required as unary '&' operand
while(scanf("%d %d %d",&n,&b,&c)==3){
^
0_0_25044463_6092.cpp:23:3: error: lvalue required as unary '&' operand
memset(has,0,sizeof(has));
^
0_0_25044463_6092.cpp:24:3: error: lvalue required as unary '&' operand
for(int i=0;i<n;i++) pos[i]=1;
^
0_0_25044463_6092.cpp:25:3: error: lvalue required as unary '&' operand
for(int i=0;i<b;i++){
^
0_0_25044463_6092.cpp:26:3: error: lvalue required as unary '&' operand
scanf("%d %d",&u,&v);
^
0_0_25044463_6092.cpp:27:3: error: lvalue required as unary '&' operand
has[u]=v;
^
0_0_25044463_6092.cpp:28:3: error: lvalue required as unary '&' operand
}
^
0_0_25044463_6092.cpp:29:3: error: lvalue required as unary '&' operand
endFlag=0;
^
0_0_25044463_6092.cpp:30:3: error: lvalue required as unary '&' operand
for(int i=0;i<c;i++){
^
0_0_25044463_6092.cpp:31:3: error: lvalue required as unary '&' operand
scanf("%d",&ft);
^
0_0_25044463_6092.cpp:32:3: error: lvalue required as unary '&' operand
if(endFlag){
^
0_0_25044463_6092.cpp:33:3: error: lvalue required as unary '&' operand
continue;
^
0_0_25044463_6092.cpp:34:3: error: lvalue required as unary '&' operand
}
^
0_0_25044463_6092.cpp:35:3: error: lvalue required as unary '&' operand
p=i%n;
^
0_0_25044463_6092.cpp:36:3: error: lvalue required as unary '&' operand
adv=pos[p]+ft;
^
0_0_25044463_6092.cpp:37:3: error: lvalue required as unary '&' operand
if(has[adv])
^
0_0_25044463_6092.cpp:38:3: error: lvalue required as unary '&' operand
adv=has[adv];
^
0_0_25044463_6092.cpp:39:3: error: lvalue required as unary '&' operand
if(adv<=100)
^
0_0_25044463_6092.cpp:40:3: error: lvalue required as unary '&' operand
pos[p]=adv;
^
0_0_25044463_6092.cpp:41:3: error: lvalue required as unary '&' operand
else
^
0_0_25044463_6092.cpp:41:7: error: 'else' without a previous 'if'
else
^
0_0_25044463_6092.cpp:42:3: error: lvalue required as unary '&' operand
pos[p]=100;
^
0_0_25044463_6092.cpp:43:3: error: lvalue required as unary '&' operand
if(pos[p]==100){
^
0_0_25044463_6092.cpp:44:3: error: lvalue required as unary '&' operand
endFlag=1;
^
0_0_25044463_6092.cpp:45:3: error: lvalue required as unary '&' operand
}
^
0_0_25044463_6092.cpp:46:3: error: lvalue required as unary '&' operand
}
^
0_0_25044463_6092.cpp:47:3: error: lvalue required as unary '&' operand
for(int i=0;i<n;i++)
^
0_0_25044463_6092.cpp:48:3: error: lvalue required as unary '&' operand
printf("Position of player %d is %d.\n",i+1,pos[i]);
^
0_0_25044463_6092.cpp:48:47: error: 'i' was not declared in this scope
printf("Position of player %d is %d.\n",i+1,pos[i]);
^
0_0_25044463_6092.cpp:49:3: error: lvalue required as unary '&' operand
}
^
0_0_25044463_6092.cpp:50:3: error: lvalue required as unary '&' operand
return 0;
^
|