Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 7 years ago

Language

C

Compiler

gcc HEAD 9.0.0 20190115 (experimental)

Options
Warnings
C11(GNU)
no pedantic
Raw compiler options
-Wall -O3

Author

anonymous

almost 7 years ago

$ gcc prog.c -Wall -Wextra -std=gnu11 -Wall -O3
prog.c: In function 'main':
prog.c:24:32: warning: passing argument 1 of 'Symmetrie' makes pointer from integer without a cast [-Wint-conversion]
   24 |   x= Symmetrie(square_matrix[4][4]);
      |                ~~~~~~~~~~~~~~~~^~~
      |                                |
      |                                int
prog.c:5:20: note: expected 'int (*)[100]' but argument is of type 'int'
    5 | int Symmetrie (int matrix[][max]) {
      |                ~~~~^~~~~~~~~~~~~
prog.c:24:32: warning: 'square_matrix[4][4]' is used uninitialized in this function [-Wuninitialized]
   24 |   x= Symmetrie(square_matrix[4][4]);
      |                ~~~~~~~~~~~~~~~~^~~
Signal:
Segmentation fault