Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 5 years ago

Language

C

Compiler

gcc 10.1.0

Options
Warnings
C99
-pedantic

Author

anonymous

almost 5 years ago

$ gcc prog.c -Wall -Wextra -std=c99 -pedantic
prog.c:10:6: warning: return type of 'main' is not 'int' [-Wmain]
   10 | void main(){
      |      ^~~~
prog.c: In function 'main':
prog.c:13:13: warning: passing argument 1 of 'inOrder' from incompatible pointer type [-Wincompatible-pointer-types]
   13 |     inOrder(arr, 9);
      |             ^~~
      |             |
      |             int *
prog.c:1:20: note: expected 'int **' but argument is of type 'int *'
    1 | void inOrder(int **arr, int size){
      |              ~~~~~~^~~
Signal:
Segmentation fault