foo.cpp: In function 'int main()':
foo.cpp:7:18: error: incompatible types in assignment of 'int' to 'int [1000]'
do cin>>i,order=n++; while(cin.get()!='\n');
^
foo.cpp:8:18: error: no match for 'operator>>' (operand types are 'std::istream {aka std::basic_istream<char>}' and 'std::string [1000] {aka std::basic_string<char> [1000]}')
for(i=0;i<n;cin>>st);
^
foo.cpp:8:18: note: candidates are:
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iostream:40:0,
from foo.cpp:1:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\istream:120:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__istream_type& (*)(std::basic_istream<_CharT, _Traits>::__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
operator>>(__istream_type& (*__pf)(__istream_type&))
^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\istream:120:7: note: no known conversion for argument 1 from 'std::string [1000] {aka std::basic_string<char> [1000]}' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&) {aka std::basic_istream<char>& (*)(std::basic_istream<char>&)}'
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\istream:124:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__ios_type& (*)(std::basic_istream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>; std::basic_istream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]
operator>>(__ios_type& (*__pf)(__ios_type&))
^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\istream:124:7: note: no known conversion for argument 1 from 'std::string [1000] {aka std::basic_string<char> [1000]}' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}'
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\istream:131:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
operator>>(ios_base& (*__pf)(ios_base&))
^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\istream:131:7: note: no known conversion for argument 1 from 'std::string [1000] {aka std::basic_string<char> [1000]}' to 'std::ios_base& (*)(std::ios_base&)'
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\istream:168:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
operator>>(bool& __n)
^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\istream:168:7: note: no known conversion for argument 1 from 'std::string [1000] {aka std::basic_string<char> [1000]}' to 'bool&'
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\istream:172:7: note: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]
operator>>(short& __n);
^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\istream:172:7: note: no known conversion for argument 1 from 'std::string [1000] {aka std::basic_string<char> [1000]}' to 'short int&'
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\istream:175:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char