QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#293599#7119. Longest Tripucup-team1265Compile Error//C++202.5kb2023-12-29 14:06:552024-04-28 09:22:07

Details

In file included from /usr/include/c++/13/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp:45,
                 from /usr/include/c++/13/ext/pb_ds/detail/container_base_dispatch.hpp:90,
                 from /usr/include/c++/13/ext/pb_ds/assoc_container.hpp:48,
                 from answer.code:7:
answer.code: In function ‘std::vector<int> longest_trip(int, int)’:
answer.code:82:63: error: too few arguments to function ‘bool are_connected(std::vector<int>, std::vector<int>)’
   82 |     for(int i = 1; i < path1.size(); i++) assert(are_connected({path1[i - 1], path1[i]}));
      |                                                  ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from answer.code:4:
longesttrip.h:5:6: note: declared here
    5 | bool are_connected(std::vector<int> A, std::vector<int> B);
      |      ^~~~~~~~~~~~~