Borderou de evaluare (job #2281587)
Utilizator | Data | 12 noiembrie 2018 15:31:52 | |
---|---|---|---|
Problema | Custi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:24:42: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'bool*' [-Wformat=]
fscanf (Cin , "%d" , &v[i][j]);
^
main.cpp:25:22: error: cannot convert 'short int (*)[1001]' to 'int (*)[1001]' for argument '1' to 'void calc(int (*)[1001], int, int)'
calc (up , -1 , 0);
^
main.cpp:26:21: error: cannot convert 'short int (*)[1001]' to 'int (*)[1001]' for argument '1' to 'void calc(int (*)[1001], int, int)'
calc (l , 0 , -1);
^
main.cpp:30:85: error: no matching function for call to 'min(int, const short int&)'
lat [i][j] = min (1 + lat [i - 1][j - 1] , min(l [i][j] , up [i][j]));
^
In file included from /usr/include/c++/6/bits/char_traits.h:39:0,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:2:
/usr/include/c++/6/bits/stl_algobase.h:195:5: note: candidate: template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)
min(const _Tp& __a, const _Tp& __b)
^~~
/usr/include/c++/6/bits/stl_algobase.h:195:5: note: template argument deduction/substitution failed:
main.cpp:30:85: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'short int')
lat [i][j] = min (1 + lat [i - 1][j - 1] , min(l [i][j] , up [i][j]));
^
In file included from /usr/include/c++/6/bits/char_traits.h:39:0,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:2:
/usr/include/c++/6/bits/stl_algobase.h:243:5: note: candidate: template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^~~
/usr/include/c++/6/bits/stl_algobase.h:243:5: note: template argument deduction/substitution failed:
main.cpp:30:85: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'short int')
lat [i][j] = min (1 + lat [i - 1][j - 1] , min(l [i][j] , up [i][j]));
^
main.cpp:21:29: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf (Cin , "%d" , &n);
^
main.cpp:24:43: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf (Cin , "%d" , &v[i][j]);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !