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