0_0_22597752_6853.cpp:7:11: error: expected ')' before '&' token
nn(string& arg, int argc):str(arg),count(argc) {}
^
0_0_22597752_6853.cpp:9:2: error: 'string' does not name a type
string str;
^
0_0_22597752_6853.cpp: In function 'int main()':
0_0_22597752_6853.cpp:17:2: error: 'list' was not declared in this scope
list<nn> m;
^
0_0_22597752_6853.cpp:17:2: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/list:63:0,
from 0_0_22597752_6853.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_list.h:447:11: note: 'std::list'
class list : protected _List_base<_Tp, _Alloc>
^
0_0_22597752_6853.cpp:17:9: error: expected primary-expression before '>' token
list<nn> m;
^
0_0_22597752_6853.cpp:17:11: error: 'm' was not declared in this scope
list<nn> m;
^
0_0_22597752_6853.cpp:19:9: error: 'cin' was not declared in this scope
while (cin >> n && n) {
^
0_0_22597752_6853.cpp:25:16: error: expected primary-expression before '>' token
for (list<nn>::iterator i = m.begin(); i != m.end(); i++) {
^
0_0_22597752_6853.cpp:25:17: error: '::iterator' has not been declared
for (list<nn>::iterator i = m.begin(); i != m.end(); i++) {
^
0_0_22597752_6853.cpp:25:17: note: suggested alternatives:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:65:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
from 0_0_22597752_6853.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_types.h:118:12: note: 'std::iterator'
struct iterator
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_types.h:118:12: note: 'std::iterator'
0_0_22597752_6853.cpp:25:43: error: 'i' was not declared in this scope
for (list<nn>::iterator i = m.begin(); i != m.end(); i++) {
^
0_0_22597752_6853.cpp:33:40: error: 'string' was not declared in this scope
if (!isfind) m.push_back(nn(string(b), 1));
^
0_0_22597752_6853.cpp:33:40: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:39:0,
from 0_0_22597752_6853.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stringfwd.h:62:33: note: 'std::string'
typedef basic_string<char> string;
^
0_0_22597752_6853.cpp:36:17: error: 'string' was not declared in this scope
nn rst(string(),0);
^
0_0_22597752_6853.cpp:36:17: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:39:0,
from 0_0_22597752_6853.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stringfwd.h:62:33: note: 'std::string'
typedef basic_string<char> string;
^
0_0_22597752_6853.cpp:37:15: error: expected primary-expression before '>' token
for (list<nn>::iterator i = m.begin(); i != m.end(); i++) {
^
0_0_22597752_6853.cpp:37:16: error: '::iterator' has not been declared
for (list<nn>::iterator i = m.begin(); i != m.end(); i++) {
^
0_0_22597752_6853.cpp:37:16: note: suggested alternatives:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:65:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
from 0_0_22597752_6853.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_types.h:118:12: note: 'std::iterator'
struct iterator
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_types.h:118:12: note: 'std::iterator'
0_0_22597752_6853.cpp:37:42: error: 'i' was not declared in this scope
for (list<nn>::iterator i = m.begin(); i != m.end(); i++) {
^
0_0_22597752_6853.cpp:42:22: error: 'class nn' has no member named 'str'
printf("%s\n", rst.str.c_str());
^
|