Borderou de evaluare (job #1841684)
Utilizator | Data | 5 ianuarie 2017 21:38:08 | |
---|---|---|---|
Problema | CMMDC | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int cmmdc(int, int)’:
user.cpp:10:19: error: lvalue required as left operand of assignment
max_element(a,b)-=min_element(a,b);
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_FIter std::max_element(_FIter, _FIter) [with _FIter = int]’:
user.cpp:10:18: required from here
/usr/include/c++/4.8/bits/stl_algo.h:6310:18: error: invalid type argument of unary ‘*’ (have ‘int’)
if (*__result < *__first)
^
/usr/include/c++/4.8/bits/stl_algo.h:6310:6: error: invalid type argument of unary ‘*’ (have ‘int’)
if (*__result < *__first)
^
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_FIter std::min_element(_FIter, _FIter) [with _FIter = int]’:
user.cpp:10:36: required from here
/usr/include/c++/4.8/bits/stl_algo.h:6254:17: error: invalid type argument of unary ‘*’ (have ‘int’)
if (*__first < *__result)
^
/usr/include/c++/4.8/bits/stl_algo.h:6254:6: error: invalid type argument of unary ‘*’ (have ‘int’)
if (*__first < *__result)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !