Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ./Main.c: In function ‘main’:
- ./Main.c:2:20: error: expected ‘,’ or ‘;’ before ‘for’
- 2 | #define rep(i,r,l) for(int (i) =(r); (i) < (int)(l);(i)++)
- | ^~~
- ./Main.c:25:3: note: in expansion of macro ‘rep’
- 25 | rep(i,1,h-2){
- | ^~~
- ./Main.c:25:7: error: ‘i’ undeclared (first use in this function)
- 25 | rep(i,1,h-2){
- | ^
- ./Main.c:2:40: note: in definition of macro ‘rep’
- 2 | #define rep(i,r,l) for(int (i) =(r); (i) < (int)(l);(i)++)
- | ^
- ./Main.c:25:7: note: each undeclared identifier is reported only once for each function it appears in
- 25 | rep(i,1,h-2){
- | ^
- ./Main.c:2:40: note: in definition of macro ‘rep’
- 2 | #define rep(i,r,l) for(int (i) =(r); (i) < (int)(l);(i)++)
- | ^
- ./Main.c:2:59: error: expected ‘;’ before ‘)’ token
- 2 | #define rep(i,r,l) for(int (i) =(r); (i) < (int)(l);(i)++)
- | ^
- ./Main.c:25:3: note: in expansion of macro ‘rep’
- 25 | rep(i,1,h-2){
- | ^~~
- ./Main.c:2:59: error: expected statement before ‘)’ token
- 2 | #define rep(i,r,l) for(int (i) =(r); (i) < (int)(l);(i)++)
- | ^
- ./Main.c:25:3: note: in expansion of macro ‘rep’
- 25 | rep(i,1,h-2){
- | ^~~
- ./Main.c:5:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
- 5 | scanf("%d %d", &h, &w);
- | ^~~~~~~~~~~~~~~~~~~~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement