Borderou de evaluare (job #1013982)
Utilizator | Data | 21 octombrie 2013 22:40:23 | |
---|---|---|---|
Problema | Subsir crescator maximal | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:1: error: expected initializer before ‘int’
int max,sol=0,p;
^
user.cpp: In function ‘void citeste()’:
user.cpp:13:27: error: ‘a’ was not declared in this scope
for(int i=1;i<=n;++i) f>>a[i];
^
user.cpp: In function ‘void dinamic()’:
user.cpp:20:6: error: overloaded function with no contextual type information
max=1;
^
user.cpp:21:3: error: ‘p’ was not declared in this scope
p=n;
^
user.cpp:27:7: error: ‘a’ was not declared in this scope
if(a[i]<a[j] && stare[i]<stare[j]+1)
^
user.cpp:31:16: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator>’
if(stare[i]>max)
^
user.cpp:33:7: error: overloaded function with no contextual type information
max=stare[i];
^
user.cpp: In function ‘void constr()’:
user.cpp:42:5: error: ‘p’ was not declared in this scope
i=p;
^
user.cpp:45:4: error: ‘a’ was not declared in this scope
g<<a[i];
^
user.cpp: In function ‘int main()’:
user.cpp:53:8: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘<unresolved overloaded function type>’)
g<<'\n'<<max);
^
user.cpp:53:8: note: candidates are:
In file included from /usr/local/include/c++/4.8.0/istream:39:0,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/ostream:108:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(__ostream_type& (*__pf)(__ostream_type&))
^
/usr/local/include/c++/4.8.0/ostream:108:7: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&) {aka std::basic_ostream<char>& (*)(std::basic_ostream<char>&)}’
/usr/local/include/c++/4.8.0/ostream:117:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ios_type& (*)(std::basic_ostream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>; std::basic_ostream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]
operator<<(__ios_type& (*__pf)(__ios_type&))
^
/usr/local/include/c++/4.8.0/ostream:117:7: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}’
/usr/local/include/c++/4.8.0/ostream:127:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(ios_base& (*__pf) (ios_base&))
^
/usr/local/include/c++/4.8.0/ostream:127:7: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘std::ios_base& (*)(std::ios_base&)’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !