Borderou de evaluare (job #2048195)
Utilizator | Data | 25 octombrie 2017 20:20:15 | |
---|---|---|---|
Problema | Galerie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:43:12: error: cannot bind ‘std::basic_istream<char>’ lvalue to ‘std::basic_istream<char>&&’
f>>a>>b>>c;
^
In file included from /usr/include/c++/4.8/fstream:38:0,
from user.cpp:1:
/usr/include/c++/4.8/istream:872:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = galerie [350003]]’
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
user.cpp:43:18: error: ‘c’ was not declared in this scope
f>>a>>b>>c;
^
user.cpp:46:18: error: invalid conversion from ‘galerie*’ to ‘int’ [-fpermissive]
ev[++k].p=a;
^
user.cpp:47:16: error: invalid conversion from ‘galerie*’ to ‘int’ [-fpermissive]
ev[k].q=b;
^
user.cpp:50:18: error: invalid conversion from ‘galerie*’ to ‘int’ [-fpermissive]
ev[++k].p=a;
^
user.cpp:51:16: error: invalid conversion from ‘galerie*’ to ‘int’ [-fpermissive]
ev[k].q=b;
^
user.cpp:57:12: error: cannot bind ‘std::basic_istream<char>’ lvalue to ‘std::basic_istream<char>&&’
f>>a>>c>>c;
^
In file included from /usr/include/c++/4.8/fstream:38:0,
from user.cpp:1:
/usr/include/c++/4.8/istream:872:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = galerie [350003]]’
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
user.cpp:57:15: error: ‘c’ was not declared in this scope
f>>a>>c>>c;
^
user.cpp:60:18: error: invalid conversion from ‘galerie*’ to ‘int’ [-fpermissive]
ev[++k].p=a;
^
user.cpp:61:16: error: invalid conversion from ‘galerie*’ to ‘int’ [-fpermissive]
ev[k].q=b;
^
user.cpp:70:28: error: ‘struct eveniment’ has no member named ‘poz’
update(a[ev[i].poz].in, a[ev[i].poz].cost);
^
user.cpp:70:45: error: ‘struct eveniment’ has no member named ‘poz’
update(a[ev[i].poz].in, a[ev[i].poz].cost);
^
user.cpp:72:28: error: ‘struct eveniment’ has no member named ‘poz’
update(a[ev[i].poz].in, a[ev[i].poz].cost*(-1));
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !