Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Start
- prog.c:23:10: warning: excess elements in scalar initializer
- {1, 2, 3, 4},
- ^
- prog.c:24:8: warning: excess elements in scalar initializer
- {-1, -2, -3, -4},
- ^~
- prog.c:25:10: warning: excess elements in scalar initializer
- {0, 0, 0, 0}
- ^
- prog.c:27:7: warning: incompatible pointer types passing 'int [12]' to parameter of type 'int (*)[4]' [-Wincompatible-pointer-types]
- test(a2);
- ^~
- prog.c:3:15: note: passing argument to parameter 'a' here
- void test(int a[3][4]) {
- ^
- prog.c:31:6: warning: suggest braces around initialization of subobject [-Wmissing-braces]
- 1, 2, 3, 4,
- ^~~~~~~~~~
- { }
- prog.c:32:6: warning: suggest braces around initialization of subobject [-Wmissing-braces]
- -1, -2, -3, -4,
- ^~~~~~~~~~~~~~
- { }
- prog.c:33:6: warning: suggest braces around initialization of subobject [-Wmissing-braces]
- 0, 0, 0, 0
- ^~~~~~~~~~
- { }
- prog.c:43:7: warning: incompatible pointer types passing 'int [12]' to parameter of type 'int (*)[4]' [-Wincompatible-pointer-types]
- test(a4);
- ^~
- prog.c:3:15: note: passing argument to parameter 'a' here
- void test(int a[3][4]) {
- ^
- 8 warnings generated.
- 1:
- 1 2 3 4
- -1 -2 -3 -4
- 0 0 0 0
- 2:
- 1 -1 0 0
- 0 0 0 0
- 0 0 0 0
- 3:
- 1 2 3 4
- -1 -2 -3 -4
- 0 0 0 0
- 4:
- 1 2 3 4
- -1 -2 -3 -4
- 0 0 0 0
- 0
- Finish
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement