Borderou de evaluare (job #1841687)
Utilizator | Data | 5 ianuarie 2017 21:41:09 | |
---|---|---|---|
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: invalid type argument of unary ‘*’ (have ‘int’)
*max_element(a,b)-=*min_element(a,b);
^
user.cpp:10:38: error: invalid type argument of unary ‘*’ (have ‘int’)
*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:19: 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:38: 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 !