/ Vijos /

记录详情

Compile Error

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]
 }
 ^

信息

递交者
类型
递交
题目
P1003 等价表达式
语言
C++
递交时间
2015-06-29 09:41:08
评测时间
2015-06-29 09:41:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes