Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 8 years ago

Language

Compiler

Options

Author

anonymous

about 8 years ago

$
prog.c: In function 'Insert':
prog.c:52:44: warning: unused parameter 'parent' [-Wunused-parameter]
 AVL_Node *Insert(AVL_Node *root, AVL_Node *parent, int data){ //データの挿入
                                            ^~~~~~
prog.c: In function 'main':
prog.c:136:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'AVL_Node * {aka struct AVLNode *}' [-Wformat=]
   printf("%d checked\n", root);
           ~^
0
0 is inserted
0 checked
1
1 is inserted
0 checked
2
2 is inserted
0 checked
3
3 is inserted
0 checked
4
4 is inserted
0 checked
5
5 is inserted
0 checked
6
6 is inserted
0 checked
7
7 is inserted
0 checked
8
8 is inserted
0 checked
9
9 is inserted
0 checked
Choose your operation.  1:add 2:search Other:END ==> 
Exit Code:
0