Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. Start
  2.  
  3. prog.c:23:10: warning: excess elements in scalar initializer
  4. {1, 2, 3, 4},
  5. ^
  6. prog.c:24:8: warning: excess elements in scalar initializer
  7. {-1, -2, -3, -4},
  8. ^~
  9. prog.c:25:10: warning: excess elements in scalar initializer
  10. {0, 0, 0, 0}
  11. ^
  12. prog.c:27:7: warning: incompatible pointer types passing 'int [12]' to parameter of type 'int (*)[4]' [-Wincompatible-pointer-types]
  13. test(a2);
  14. ^~
  15. prog.c:3:15: note: passing argument to parameter 'a' here
  16. void test(int a[3][4]) {
  17. ^
  18. prog.c:31:6: warning: suggest braces around initialization of subobject [-Wmissing-braces]
  19. 1, 2, 3, 4,
  20. ^~~~~~~~~~
  21. { }
  22. prog.c:32:6: warning: suggest braces around initialization of subobject [-Wmissing-braces]
  23. -1, -2, -3, -4,
  24. ^~~~~~~~~~~~~~
  25. { }
  26. prog.c:33:6: warning: suggest braces around initialization of subobject [-Wmissing-braces]
  27. 0, 0, 0, 0
  28. ^~~~~~~~~~
  29. { }
  30. prog.c:43:7: warning: incompatible pointer types passing 'int [12]' to parameter of type 'int (*)[4]' [-Wincompatible-pointer-types]
  31. test(a4);
  32. ^~
  33. prog.c:3:15: note: passing argument to parameter 'a' here
  34. void test(int a[3][4]) {
  35. ^
  36. 8 warnings generated.
  37.  
  38. 1:
  39. 1 2 3 4
  40. -1 -2 -3 -4
  41. 0 0 0 0
  42.  
  43. 2:
  44. 1 -1 0 0
  45. 0 0 0 0
  46. 0 0 0 0
  47.  
  48. 3:
  49. 1 2 3 4
  50. -1 -2 -3 -4
  51. 0 0 0 0
  52.  
  53. 4:
  54. 1 2 3 4
  55. -1 -2 -3 -4
  56. 0 0 0 0
  57.  
  58. 0
  59.  
  60. Finish
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement