Advertisement
h1j1k1

err

Aug 3rd, 2021
797
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.61 KB | None | 0 0
  1. ./Main.c: In function ‘main’:
  2. ./Main.c:2:20: error: expected ‘,’ or ‘;’ before ‘for
  3.     2 | #define rep(i,r,l) for(int (i) =(r);  (i) < (int)(l);(i)++)
  4.       |                    ^~~
  5. ./Main.c:25:3: note: in expansion of macro ‘rep’
  6.    25 |   rep(i,1,h-2){
  7.       |   ^~~
  8. ./Main.c:25:7: error: ‘i’ undeclared (first use in this function)
  9.    25 |   rep(i,1,h-2){
  10.       |       ^
  11. ./Main.c:2:40: note: in definition of macro ‘rep’
  12.     2 | #define rep(i,r,l) for(int (i) =(r);  (i) < (int)(l);(i)++)
  13.       |                                        ^
  14. ./Main.c:25:7: note: each undeclared identifier is reported only once for each function it appears in
  15.    25 |   rep(i,1,h-2){
  16.       |       ^
  17. ./Main.c:2:40: note: in definition of macro ‘rep’
  18.     2 | #define rep(i,r,l) for(int (i) =(r);  (i) < (int)(l);(i)++)
  19.       |                                        ^
  20. ./Main.c:2:59: error: expected ‘;’ before ‘)’ token
  21.     2 | #define rep(i,r,l) for(int (i) =(r);  (i) < (int)(l);(i)++)
  22.       |                                                           ^
  23. ./Main.c:25:3: note: in expansion of macro ‘rep’
  24.    25 |   rep(i,1,h-2){
  25.       |   ^~~
  26. ./Main.c:2:59: error: expected statement before ‘)’ token
  27.     2 | #define rep(i,r,l) for(int (i) =(r);  (i) < (int)(l);(i)++)
  28.       |                                                           ^
  29. ./Main.c:25:3: note: in expansion of macro ‘rep’
  30.    25 |   rep(i,1,h-2){
  31.       |   ^~~
  32. ./Main.c:5:3: warning: ignoring return value of ‘scanf, declared with attribute warn_unused_result [-Wunused-result]
  33.     5 |   scanf("%d %d", &h, &w);
  34.       |   ^~~~~~~~~~~~~~~~~~~~~~
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement