In file included from cave.cpp:1:0:
graderlib.c:8:23: error: expected unqualified-id before 'do'
#define fail(s, x...) do { \
^
graderlib.c:11:4: error: expected unqualified-id before 'while'
} while(0)
^
/usr/include/c++/7/bits/basic_ios.h: In member function 'std::basic_ios<_CharT, _Traits>::operator bool() const':
graderlib.c:8:23: error: expected unqualified-id before 'do'
#define fail(s, x...) do { \
^
graderlib.c:8:23: error: expected ';' before 'do'
/usr/include/c++/7/bits/basic_ios.h: In member function 'bool std::basic_ios<_CharT, _Traits>::operator!() const':
graderlib.c:8:23: error: expected unqualified-id before 'do'
#define fail(s, x...) do { \
^
graderlib.c:8:23: error: expected ';' before 'do'
/usr/include/c++/7/bits/ostream.tcc: In member function 'std::basic_ostream<_CharT, _Traits>::pos_type std::basic_ostream<_CharT, _Traits>::tellp()':
graderlib.c:8:23: error: expected unqualified-id before 'do'
#define fail(s, x...) do { \
^
graderlib.c:8:23: error: expected ')' before 'do'
/usr/include/c++/7/bits/ostream.tcc: In member function 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::seekp(std::basic_ostream<_CharT, _Traits>::pos_type)':
graderlib.c:8:23: error: expected unqualified-id before 'do'
#define fail(s, x...) do { \
^
graderlib.c:8:23: error: expected ')' before 'do'
/usr/include/c++/7/bits/ostream.tcc: In member function 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::seekp(std::basic_ostream<_CharT, _Traits>::off_type, std::ios_base::seekdir)':
graderlib.c:8:23: error: expected unqualified-id before 'do'
#define fail(s, x...) do { \
^
graderlib.c:8:23: error: expected ')' before 'do'
/usr/include/c++/7/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>::pos_type std::basic_istream<_CharT, _Traits>::tellg()':
graderlib.c:8:23: error: expected unqualified-id before 'do'
#define fail(s, x...) do { \
^
graderlib.c:8:23: error: expected ')' before 'do'
/usr/include/c++/7/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::seekg(std::basic_istream<_CharT, _Traits>::pos_type)':
graderlib.c:8:23: error: expected unqualified-id before 'do'
#define fail(s, x...) do { \
^
graderlib.c:8:23: error: expected ')' before 'do'
/usr/include/c++/7/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::seekg(std::basic_istream<_CharT, _Traits>::off_type, std::ios_base::seekdir)':
graderlib.c:8:23: error: expected unqualified-id before 'do'
#define fail(s, x...) do { \
^
graderlib.c:8:23: error: expected ')' before 'do'
/usr/include/c++/7/bits/regex.tcc: In member function 'int std::__cxx11::regex_traits< <template-parameter-1-1> >::value(_Ch_type, int) const':
graderlib.c:8:23: error: expected unqualified-id before 'do'
#define fail(s, x...) do { \
^
graderlib.c:8:23: error: expected ';' before 'do'
In file included from /usr/include/c++/7/bits/regex.h:2802:0,
from /usr/include/c++/7/regex:62,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:110,
from cave.cpp:3:
/usr/include/c++/7/bits/regex.tcc:354:26: error: expected ';' before '?' token
return __is.fail() ? -1 : __v;
^
/usr/include/c++/7/bits/regex.tcc:354:26: error: expected primary-expression before '?' token
cave.cpp: In function 'void exploreCave(int)':
cave.cpp:17:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(x==-1 || x>i)k=true;bool t=k;//ghia
^~
cave.cpp:17:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(x==-1 || x>i)k=true;bool t=k;//ghia
^~~~