0_0_30310075_5747.cpp:4:27: error: 'i' was not declared in this scope
double jueduizhi(double q[i])
^
0_0_30310075_5747.cpp: In function 'double jueduizhi(...)':
0_0_30310075_5747.cpp:11:9: error: 'q' was not declared in this scope
if (q[i]>0&&q[i]==0)
^
0_0_30310075_5747.cpp:13:18: error: redeclaration of 'double q [i]'
double q[i]= q[i];
^
0_0_30310075_5747.cpp:11:9: note: '<typeprefixerror>q' previously declared here
if (q[i]>0&&q[i]==0)
^
0_0_30310075_5747.cpp:13:24: error: array must be initialized with a brace-enclosed initializer
double q[i]= q[i];
^
0_0_30310075_5747.cpp:15:8: error: 'q' was not declared in this scope
if(q[i]<0)
^
0_0_30310075_5747.cpp:17:19: error: redeclaration of 'double q [i]'
double q[i] = q[i]-2*q[i];
^
0_0_30310075_5747.cpp:15:8: note: '<typeprefixerror>q' previously declared here
if(q[i]<0)
^
0_0_30310075_5747.cpp:17:33: error: array must be initialized with a brace-enclosed initializer
double q[i] = q[i]-2*q[i];
^
0_0_30310075_5747.cpp: In function 'int main()':
0_0_30310075_5747.cpp:29:15: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' and '<unresolved overloaded function type>')
{cin>>p[i]>>endl;}
^
0_0_30310075_5747.cpp:29:15: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:40:0,
from 0_0_30310075_5747.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/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&))
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:120:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&) {aka std::basic_istream<char>& (*)(std::basic_istream<char>&)}'
GCC4.9.2/x86_64-w64-mingw32/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&))
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:124:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}'
GCC4.9.2/x86_64-w64-mingw32/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&))
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:131:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)'
GCC4.9.2/x86_64-w64-mingw32/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)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:168:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool&'
GCC4.9.2/x86_64-w64-mingw32/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);
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:172:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int&'
GCC4.9.2/x86_64-w64-mingw32/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>]
operator>>(unsigned short& __n)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:175:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:179:7: note: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]
operator>>(int& __n);
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:179:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:182:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
operator>>(unsigned int& __n)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:182:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:186:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
operator>>(long& __n)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:186:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:190:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
operator>>(unsigned long& __n)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:190:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:195:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
operator>>(long long& __n)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:195:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:199:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
operator>>(unsigned long long& __n)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:199:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:214:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
operator>>(float& __f)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:214:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:218:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
operator>>(double& __f)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:218:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:222:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _T
|