Code:
bash-3.00$ c++ bla.cpp
In file included from /usr/include/c++/3.3.6/backward/iostream.h:31,
from bla.cpp:1:
/usr/include/c++/3.3.6/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
bla.cpp: In function `int main()':
bla.cpp:5: error: use of enum `Days' without previous declaration
bla.cpp:5: error: `monday' undeclared (first use this function)
bla.cpp:5: error: (Each undeclared identifier is reported only once for each
function it appears in.)
bla.cpp:5: error: `tuesday' undeclared (first use this function)
bla.cpp:5: error: `wendnesday' undeclared (first use this function)
bla.cpp:5: error: `thursday' undeclared (first use this function)
bla.cpp:5: error: `friday' undeclared (first use this function)
bla.cpp:5: error: `saturday' undeclared (first use this function)
bla.cpp:6: error: `sunday' undeclared (first use this function)
bla.cpp:7: error: `Days' undeclared (first use this function)
bla.cpp:7: error: syntax error before `;' token
bla.cpp:11: error: `DayOff' undeclared (first use this function)
bash-3.00$
ne znam ni ja bas puno o c++... ali valjda si zaboravio da deklarises "Days"
seas se ono na pocetku c++:
Code:
int nesto;
nesto = 7;