0_0_38639505_23942.cpp:7:13: error: variable or field 'insert' declared void
void insert(string s)
^~~~~~
0_0_38639505_23942.cpp:7:13: error: 'string' was not declared in this scope
0_0_38639505_23942.cpp:7:13: note: suggested alternative:
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/iosfwd:39,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ios:38,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ostream:38,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/iostream:39,
from 0_0_38639505_23942.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string'
typedef basic_string<char> string;
^~~~~~
0_0_38639505_23942.cpp:21:10: error: 'string' was not declared in this scope
int find(string s)
^~~~~~
0_0_38639505_23942.cpp:21:10: note: suggested alternative:
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/iosfwd:39,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ios:38,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ostream:38,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/iostream:39,
from 0_0_38639505_23942.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string'
typedef basic_string<char> string;
^~~~~~
0_0_38639505_23942.cpp: In function 'int main()':
0_0_38639505_23942.cpp:33:2: error: 'string' was not declared in this scope
string str;
^~~~~~
0_0_38639505_23942.cpp:33:2: note: suggested alternative:
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/iosfwd:39,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ios:38,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ostream:38,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/iostream:39,
from 0_0_38639505_23942.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string'
typedef basic_string<char> string;
^~~~~~
0_0_38639505_23942.cpp:34:17: error: 'cin' was not declared in this scope
while (getline(cin,str))
^~~
0_0_38639505_23942.cpp:34:17: note: suggested alternative:
In file included from 0_0_38639505_23942.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^~~
0_0_38639505_23942.cpp:34:21: error: 'str' was not declared in this scope
while (getline(cin,str))
^~~
0_0_38639505_23942.cpp:34:21: note: suggested alternative: 'std'
while (getline(cin,str))
^~~
std
0_0_38639505_23942.cpp:34:9: error: 'getline' was not declared in this scope
while (getline(cin,str))
^~~~~~~
0_0_38639505_23942.cpp:34:9: note: suggested alternative:
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/string:52,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/locale_classes.h:40,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/ios_base.h:41,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ios:42,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ostream:38,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/iostream:39,
from 0_0_38639505_23942.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/basic_string.h:6382:5: note: 'std::getline'
getline(basic_istream<_CharT, _Traits>&& __is,
^~~~~~~
0_0_38639505_23942.cpp:37:3: error: 'insert' was not declared in this scope
insert(str);
^~~~~~
0_0_38639505_23942.cpp:37:3: note: suggested alternative: 'qsort'
insert(str);
^~~~~~
qsort
0_0_38639505_23942.cpp:39:8: error: expected ';' before 'substr'
string substr;
^~~~~~~
;
0_0_38639505_23942.cpp:40:17: error: 'cin' was not declared in this scope
while (getline(cin, substr))
^~~
0_0_38639505_23942.cpp:40:17: note: suggested alternative:
In file included from 0_0_38639505_23942.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^~~
0_0_38639505_23942.cpp:40:22: error: 'substr' was not declared in this scope
while (getline(cin, substr))
^~~~~~
0_0_38639505_23942.cpp:40:22: note: suggested alternative: 'wcsstr'
while (getline(cin, substr))
^~~~~~
wcsstr
0_0_38639505_23942.cpp:40:9: error: 'getline' was not declared in this scope
while (getline(cin, substr))
^~~~~~~
0_0_38639505_23942.cpp:40:9: note: suggested alternative:
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/string:52,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/locale_classes.h:40,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/ios_base.h:41,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ios:42,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ostream:38,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/iostream:39,
from 0_0_38639505_23942.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/basic_string.h:6382:5: note: 'std::getline'
getline(basic_istream<_CharT, _Traits>&& __is,
^~~~~~~
0_0_38639505_23942.cpp:43:14: error: 'find' cannot be used as a function
find(substr);
^
0_0_38639505_23942.cpp:44:3: error: 'cout' was not declared in this scope
cout << find(substr);
^~~~
0_0_38639505_23942.cpp:44:3: note: suggested alternative:
In file included from 0_0_38639505_23942.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^~~~
0_0_38639505_23942.cpp:44:22: error: 'find' cannot be used as a function
cout << find(substr);
^
|