0_0_28849593_24555.cpp:3:1: error: expected unqualified-id before 'for'
for(int dx = -1; dx <= 1; dx++)
^
0_0_28849593_24555.cpp:3:18: error: 'dx' does not name a type
for(int dx = -1; dx <= 1; dx++)
^
0_0_28849593_24555.cpp:3:27: error: 'dx' does not name a type
for(int dx = -1; dx <= 1; dx++)
^
0_0_28849593_24555.cpp:14:5: error: redefinition of 'int nx'
int nx,ny,x,y;
^
0_0_28849593_24555.cpp:2:5: note: 'int nx' previously declared here
int nx,ny,x,y;
^
0_0_28849593_24555.cpp:14:8: error: redefinition of 'int ny'
int nx,ny,x,y;
^
0_0_28849593_24555.cpp:2:8: note: 'int ny' previously declared here
int nx,ny,x,y;
^
0_0_28849593_24555.cpp:14:11: error: redefinition of 'int x'
int nx,ny,x,y;
^
0_0_28849593_24555.cpp:2:11: note: 'int x' previously declared here
int nx,ny,x,y;
^
0_0_28849593_24555.cpp:14:13: error: redefinition of 'int y'
int nx,ny,x,y;
^
0_0_28849593_24555.cpp:2:13: note: 'int y' previously declared here
int nx,ny,x,y;
^
0_0_28849593_24555.cpp:15:37: error: scalar object 'dy' requires one element in initializer
int dx[4] = {1,0,-1,0}, dy={0,1,0,-1}
^
0_0_28849593_24555.cpp:16:1: error: expected ',' or ';' before 'for'
for(int i = 0; i < 4 ; i++)
^
0_0_28849593_24555.cpp:16:16: error: 'i' does not name a type
for(int i = 0; i < 4 ; i++)
^
0_0_28849593_24555.cpp:16:24: error: 'i' does not name a type
for(int i = 0; i < 4 ; i++)
^
|