Borderou de evaluare (job #2345007)

Utilizator PopoviciRobertPopovici Robert PopoviciRobert Data 15 februarie 2019 19:52:40
Problema Parcare Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'long long unsigned int get_hsh()': main.cpp:38:36: error: call of overloaded 'get(std::pair<char, char>&)' is ambiguous hsh = hsh * B + get(head[i]); ^ main.cpp:20:12: note: candidate: int get(std::pair<int, int>) inline int get(pair <int, int> x) { ^~~ In file included from /usr/include/c++/6/algorithm:60:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:65, from main.cpp:1: /usr/include/c++/6/utility:241:5: note: candidate: constexpr const _Tp& std::get(const std::pair<_Up, _Tp>&) [with _Tp = char; _Up = char] get(const pair<_Up, _Tp>& __p) noexcept ^~~ /usr/include/c++/6/utility:236:5: note: candidate: constexpr _Tp& std::get(std::pair<_Up, _Tp>&) [with _Tp = char; _Up = char] get(pair<_Up, _Tp>& __p) noexcept ^~~ /usr/include/c++/6/utility:226:5: note: candidate: constexpr const _Tp& std::get(const std::pair<_T1, _T2>&) [with _Tp = char; _Up = char] get(const pair<_Tp, _Up>& __p) noexcept ^~~ /usr/include/c++/6/utility:221:5: note: candidate: constexpr _Tp& std::get(std::pair<_T1, _T2>&) [with _Tp = char; _Up = char] get(pair<_Tp, _Up>& __p) noexcept ^~~ main.cpp: In function 'int main()': main.cpp:82:23: warning: suggest parentheses around '+' inside '>>' [-Wparentheses] cin >> mat[i] + 1; ~~~~~~~^~~ main.cpp:143:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(hsh != start) { ~~~~^~~~~~~~ main.cpp:182:52: warning: narrowing conversion of '((id + 65) - 1)' from 'int' to 'char' inside { } [-Wnarrowing] vis[cur] = {hsh, {id + 'A' - 1, getDir(dir), nr}}; ~~~~~~~~~^~~ Non zero exit status: 1

Ceva nu functioneaza?