Borderou de evaluare (job #2651948)

Utilizator rares404AlShaytan - Balasescu Rares rares404 Data 23 septembrie 2020 20:18:20
Problema Kdrum Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main(int, const char**)': main.cpp:57:38: error: '__gcd' was not declared in this scope dp[x1][y3][resp[__gcd(k, mat[x1][y3])]] = 1 ; ^ main.cpp:57:38: note: suggested alternative: In file included from /usr/include/c++/6/algorithm:62:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:65, from main.cpp:12: /usr/include/c++/6/bits/stl_algo.h:1229:5: note: 'std::__gcd' __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n) ^~~~~ main.cpp:59:46: error: no matching function for call to 'std::queue<cell>::push(<brace-enclosed initializer list>)' q.push({x1, y3, resp[__gcd(k, mat[x1][y3])]}) ; ^ In file included from /usr/include/c++/6/queue:64:0, from main.cpp:11: /usr/include/c++/6/bits/stl_queue.h:242:7: note: candidate: void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = cell; _Sequence = std::deque<cell, std::allocator<cell> >; std::queue<_Tp, _Sequence>::value_type = cell] push(const value_type& __x) ^~~~ /usr/include/c++/6/bits/stl_queue.h:242:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const cell&}' /usr/include/c++/6/bits/stl_queue.h:247:7: note: candidate: void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = cell; _Sequence = std::deque<cell, std::allocator<cell> >; std::queue<_Tp, _Sequence>::value_type = cell] push(value_type&& __x) ^~~~ /usr/include/c++/6/bits/stl_queue.h:247:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::queue<cell>::value_type&& {aka cell&&}' Non zero exit status: 1

Ceva nu functioneaza?