Advertisement
Guest User

Untitled

a guest
Oct 13th, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. demo.c:6:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
  2. void main(){
  3. ^
  4. demo.c: In function ‘main’:
  5. demo.c:13:5: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
  6. *(edge+i) = (int *)malloc(N * sizeof(int));
  7. ^
  8. demo.c:13:24: warning: incompatible implicit declaration of built-in function ‘malloc’
  9. *(edge+i) = (int *)malloc(N * sizeof(int));
  10. ^
  11. demo.c:16:1: warning: implicit declaration of function ‘srand’ [-Wimplicit-function-declaration]
  12. srand(0);
  13. ^
  14. demo.c:26:10: warning: passing argument 1 of ‘printing’ from incompatible pointer type
  15. printing(edge); // Pass the pointer of the matrix
  16. ^
  17. demo.c:5:6: note: expected ‘int *’ but argument is of type ‘int **’
  18. void printing(int *edge);
  19. ^
  20. demo.c: In function ‘printing’:
  21. demo.c:38:8: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Wformat=]
  22. printf("%d \t", ((edge+i)+j)); // I think I have to do something in this line.
  23. ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement