제출 #465811

#제출 시각아이디문제언어결과실행 시간메모리
465811habibaissaHandcrafted Gift (IOI20_gift)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #define int long long using namespace std; vector<vector<int> > l; vector<int> memo; int test=0; vector<set<int> > res; void craft (string s); int construct(int n, int r, array<int> a, array<int> b, array<int> x) { string s; for(int i=0;i<n;i++) { s.push_back('B'); } craft(s); return 1; }

컴파일 시 표준 에러 (stderr) 메시지

gift.cpp:10:38: error: wrong number of template arguments (1, should be 2)
   10 | int construct(int n, int r, array<int> a, array<int> b, array<int> x)
      |                                      ^
In file included from /usr/include/c++/10/tuple:39,
                 from /usr/include/c++/10/functional:54,
                 from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/10/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
                 from gift.cpp:1:
/usr/include/c++/10/array:94:12: note: provided for 'template<class _Tp, long unsigned int _Nm> struct std::array'
   94 |     struct array
      |            ^~~~~
gift.cpp:10:52: error: wrong number of template arguments (1, should be 2)
   10 | int construct(int n, int r, array<int> a, array<int> b, array<int> x)
      |                                                    ^
In file included from /usr/include/c++/10/tuple:39,
                 from /usr/include/c++/10/functional:54,
                 from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/10/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
                 from gift.cpp:1:
/usr/include/c++/10/array:94:12: note: provided for 'template<class _Tp, long unsigned int _Nm> struct std::array'
   94 |     struct array
      |            ^~~~~
gift.cpp:10:66: error: wrong number of template arguments (1, should be 2)
   10 | int construct(int n, int r, array<int> a, array<int> b, array<int> x)
      |                                                                  ^
In file included from /usr/include/c++/10/tuple:39,
                 from /usr/include/c++/10/functional:54,
                 from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/10/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
                 from gift.cpp:1:
/usr/include/c++/10/array:94:12: note: provided for 'template<class _Tp, long unsigned int _Nm> struct std::array'
   94 |     struct array
      |            ^~~~~