Borderou de evaluare (job #2576183)

Utilizator KillHorizon23Orban Robert KillHorizon23 Data 6 martie 2020 17:46:02
Problema Exp Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void descom(int)': main.cpp:17:18: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator%' while (n % div == 0) ~~^~~~~ main.cpp:19:18: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator/' n /= div; ^~~ main.cpp:19:18: error: in evaluation of 'operator/=(int, <unresolved overloaded function type>)' main.cpp:20:14: error: no match for 'operator[]' (operand types are 'std::vector<int>' and '<unresolved overloaded function type>') v[div]++; ^ In file included from /usr/include/c++/6/vector:64:0, from /usr/include/c++/6/queue:61, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:86, from main.cpp:1: /usr/include/c++/6/bits/stl_vector.h:780:7: note: candidate: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::reference = int&; std::vector<_Tp, _Alloc>::size_type = long unsigned int] operator[](size_type __n) _GLIBCXX_NOEXCEPT ^~~~~~~~ /usr/include/c++/6/bits/stl_vector.h:780:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::vector<int>::size_type {aka long unsigned int}' /usr/include/c++/6/bits/stl_vector.h:795:7: note: candidate: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::const_reference = const int&; std::vector<_Tp, _Alloc>::size_type = long unsigned int] operator[](size_type __n) const _GLIBCXX_NOEXCEPT ^~~~~~~~ /usr/include/c++/6/bits/stl_vector.h:795:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::vector<int>::size_type {aka long unsigned int}' main.cpp:22:16: error: overloaded function with no contextual type information div += 2; ^ Non zero exit status: 1

Ceva nu functioneaza?