Author
anonymous
over 6 years ago
Language
C++
Compiler
clang 7.0.0
Options
Warnings
Boost 1.69.0
C++2a(GNU)
no pedantic
Author
anonymous
over 6 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/clang-7.0.0/include -std=gnu++2a
prog.cc:1:1: error: unknown type name 'Item'
Item *popBest( list_t *list ) // and remove the best board from the list.
^
prog.cc:1:16: error: unknown type name 'list_t'
Item *popBest( list_t *list ) // and remove the best board from the list.
^
prog.cc:9:3: error: unknown type name 'Item'
Item *item = list->first;
^
prog.cc:10:3: error: use of undeclared identifier 'Item'; did you mean 'item'?
Item *best;
^~~~
item
prog.cc:9:9: note: 'item' declared here
Item *item = list->first;
^
prog.cc:10:9: error: use of undeclared identifier 'best'
Item *best;
^
prog.cc:16:7: error: use of undeclared identifier 'best'
best = item;
^
prog.cc:21:17: error: use of undeclared identifier 'best'
delList(list, best);
^
prog.cc:23:10: error: use of undeclared identifier 'best'
return best;
^
prog.cc:29:5: error: unknown type name 'Item'
Item *cur_node, *child_p, *temp;
^
prog.cc:32:24: error: use of undeclared identifier 'openList_p'
while ( listCount(&openList_p) ) { /* While items are on the open list
^
prog.cc:34:9: warning: '/*' within block comment [-Wcomment]
/* Get the first item on the open list
^
prog.cc:32:40: error: unterminated /* comment
while ( listCount(&openList_p) ) { /* While items are on the open list
^
prog.cc:68:2: error: expected '}'
}
^
prog.cc:32:38: note: to match this '{'
while ( listCount(&openList_p) ) { /* While items are on the open list
^
prog.cc:68:2: error: expected '}'
}
^
prog.cc:28:1: note: to match this '{'
{
^
1 warning and 13 errors generated.
Exit Code:
1