Borderou de evaluare (job #1816985)
| Utilizator | Data | 27 noiembrie 2016 11:14:08 | |
|---|---|---|---|
| Problema | Densitate | 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:22:14: error: cannot bind ‘std::basic_istream<char>’ lvalue to ‘std::basic_istream<char>&&’
fin>>a>>b;
^
In file included from /usr/include/c++/4.8/iostream:40: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 = int [500001]]’
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
user.cpp:23:17: error: expected primary-expression before ‘]’ token
fout<<v[]-v[a-1]<<"\n";
^
user.cpp:23:24: error: invalid types ‘int [500001][int*]’ for array subscript
fout<<v[]-v[a-1]<<"\n";
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
