foo.cpp:7:1: error: 'define' does not name a type
define p 1000007
^
foo.cpp:14:1: error: 'string' does not name a type
string ss;
^
foo.cpp:16:1: error: 'stack' does not name a type
stack <char> ope;
^
foo.cpp:18:18: error: 'string' was not declared in this scope
long long strnum(string s)
^
foo.cpp:18:18: note: suggested alternative:
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/iosfwd:39:0,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/ios:38,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/ostream:38,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/iostream:39,
from foo.cpp:1:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stringfwd.h:62:33: note: 'std::string'
typedef basic_string<char> string;
^
foo.cpp:19:1: error: expected ',' or ';' before '{' token
{
^
foo.cpp:34:16: error: 'string' was not declared in this scope
long long work(string s)
^
foo.cpp:34:16: note: suggested alternative:
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/iosfwd:39:0,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/ios:38,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/ostream:38,
from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/iostream:39,
from foo.cpp:1:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stringfwd.h:62:33: note: 'std::string'
typedef basic_string<char> string;
^
foo.cpp:35:1: error: expected ',' or ';' before '{' token
{
^
foo.cpp: In function 'int pre(char)':
foo.cpp:32:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^