Borderou de evaluare (job #1748301)

Utilizator MarutBrabete Marius Stelian Marut Data 26 august 2016 12:06:00
Problema Next Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In member function ‘HugeN& HugeN::operator-(const HugeN&)’: user.cpp:69:11: warning: reference to local variable ‘temp’ returned [-Wreturn-local-addr] HugeN temp; ^ user.cpp: In member function ‘HugeN& HugeN::operator%(int)’: user.cpp:93:12: error: invalid initialization of reference of type ‘HugeN&’ from expression of type ‘int’ return r; ^ user.cpp: In member function ‘HugeN& HugeN::operator+(const HugeN&)’: user.cpp:98:11: warning: reference to local variable ‘temp’ returned [-Wreturn-local-addr] HugeN temp; ^ user.cpp: In function ‘int main()’: user.cpp:118:9: error: expected primary-expression before ‘(’ token HugeN (int c); ^ user.cpp:118:10: error: expected primary-expression before ‘int’ HugeN (int c); ^ user.cpp:119:16: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d",&d); ^ user.cpp:123:5: error: ‘c’ was not declared in this scope a=c%d; ^ user.cpp:124:6: error: no match for ‘operator-’ (operand types are ‘long long int’ and ‘HugeN’) b=d-a; ^ user.cpp:124:6: note: candidates are: In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/algorithm:61, from user.cpp:3: /usr/include/c++/4.8/bits/stl_iterator.h:327:5: note: template<class _Iterator> typename std::reverse_iterator<_Iterator>::difference_type std::operator-(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&) operator-(const reverse_iterator<_Iterator>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:327:5: note: template argument deduction/substitution failed: user.cpp:124:7: note: mismatched types ‘const std::reverse_iterator<_Iterator>’ and ‘long long int’ b=d-a; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/algorithm:61, from user.cpp:3: /usr/include/c++/4.8/bits/stl_iterator.h:379:5: note: template<class _IteratorL, class _IteratorR> decltype ((__y.base() - __x.base())) std::operator-(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&) operator-(const reverse_iterator<_IteratorL>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:379:5: note: template argument deduction/substitution failed: user.cpp:124:7: note: mismatched types ‘const std::reverse_iterator<_Iterator>’ and ‘long long int’ b=d-a; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0,

Ceva nu functioneaza?