Borderou de evaluare (job #959728)
Utilizator | Data | 8 iunie 2013 16:51:04 | |
---|---|---|---|
Problema | Taxa | 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:16:21: error: cannot bind ‘std::basic_istream<char>’ lvalue to ‘std::basic_istream<char>&&’
fin>>a[j];
^
In file included from /usr/local/include/c++/4.8.0/fstream:38:0,
from user.cpp:1:
/usr/local/include/c++/4.8.0/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 [1010]]’
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
user.cpp:17:18: error: incompatible types in assignment of ‘int’ to ‘int [1010]’
d[j] = INF;
^
user.cpp:30:75: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (iv>0 && iv<=n && jv > 0 && jv<=m && a[iv][jv]!=a[j] && d[j] > d[iv][jv] + a[iv][jv]*a[j]){
^
user.cpp:30:112: error: invalid operands of types ‘int’ and ‘int [1010]’ to binary ‘operator*’
if (iv>0 && iv<=n && jv > 0 && jv<=m && a[iv][jv]!=a[j] && d[j] > d[iv][jv] + a[iv][jv]*a[j]){
^
user.cpp:31:57: error: invalid operands of types ‘int’ and ‘int [1010]’ to binary ‘operator*’
d[j] = d[iv][jv] + a[iv][jv]*a[j];
^
user.cpp:34:75: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (iv>0 && iv<=n && jv > 0 && jv<=m && a[iv][jv]==a[j] && d[j] > d[iv][jv]){
^
user.cpp:34:95: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (iv>0 && iv<=n && jv > 0 && jv<=m && a[iv][jv]==a[j] && d[j] > d[iv][jv]){
^
user.cpp:35:30: error: incompatible types in assignment of ‘int’ to ‘int [1010]’
d[j] = d[iv][jv];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !