Borderou de evaluare (job #2060305)
Utilizator | Data | 8 noiembrie 2017 06:19:20 | |
---|---|---|---|
Problema | Numerele lui Stirling | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:60:72: error: template declaration of ‘constexpr const std::array<int, sizeof (I ...)> buildStirling1’
static constexpr std::array< int, sizeof...(I) > buildStirling1( std::index_sequence<I...> seq )
^
user.cpp:60:67: error: ‘index_sequence’ is not a member of ‘std’
static constexpr std::array< int, sizeof...(I) > buildStirling1( std::index_sequence<I...> seq )
^
user.cpp:68:47: error: ‘make_index_sequence’ is not a member of ‘std’
static constexpr auto value = buildStirling1(std::make_index_sequence<MAXIMUMN*MAXM + MAXIMUMM>{});
^
user.cpp:68:97: error: expected primary-expression before ‘{’ token
static constexpr auto value = buildStirling1(std::make_index_sequence<MAXIMUMN*MAXM + MAXIMUMM>{});
^
user.cpp:68:99: error: there are no arguments to ‘buildStirling1’ that depend on a template parameter, so a declaration of ‘buildStirling1’ must be available [-fpermissive]
static constexpr auto value = buildStirling1(std::make_index_sequence<MAXIMUMN*MAXM + MAXIMUMM>{});
^
user.cpp:68:99: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
user.cpp:101:72: error: template declaration of ‘constexpr const std::array<int, sizeof (I ...)> buildStirling2’
static constexpr std::array< int, sizeof...(I) > buildStirling2( std::index_sequence<I...> seq )
^
user.cpp:101:67: error: ‘index_sequence’ is not a member of ‘std’
static constexpr std::array< int, sizeof...(I) > buildStirling2( std::index_sequence<I...> seq )
^
user.cpp:109:47: error: ‘make_index_sequence’ is not a member of ‘std’
static constexpr auto value = buildStirling2(std::make_index_sequence<MAXIMUMN*MAXM + MAXIMUMM>{});
^
user.cpp:109:97: error: expected primary-expression before ‘{’ token
static constexpr auto value = buildStirling2(std::make_index_sequence<MAXIMUMN*MAXM + MAXIMUMM>{});
^
user.cpp:109:99: error: there are no arguments to ‘buildStirling2’ that depend on a template parameter, so a declaration of ‘buildStirling2’ must be available [-fpermissive]
static constexpr auto value = buildStirling2(std::make_index_sequence<MAXIMUMN*MAXM + MAXIMUMM>{});
^
user.cpp: In instantiation of ‘constexpr const auto AllStirling1<200, 200>::value’:
user.cpp:68:24: required from ‘struct AllStirling1<200, 200>’
user.cpp:114:44: required from here
user.cpp:68:99: error: ‘buildStirling1’ was not declared in this scope
static constexpr auto value = buildStirling1(std::make_index_sequence<MAXIMUMN*MAXM + MAXIMUMM>{});
^
user.cpp: In instantiation of ‘constexpr<typeprefixerror> AllStirling1<200, 200>::value’:
user.cpp:114:46: required from here
user.cpp:68:99: error: ‘buildStirling1’ was not declared in this scope
user.cpp: In instantiation of ‘constexpr<typeprefixerror> AllStirling1<200, 200>::value’:
user.cpp:114:46: required from here
user.cpp:68:99: error: ‘buildStirling1’ was not declared in this scope
user.cpp: In instantiation of ‘constexpr const auto AllStirling2<200, 200>::value’:
user.cpp:109:24: required from ‘struct AllStirling2<200, 200>’
user.cpp:115:44: required from here
user.cpp:109:99: error: ‘buildStirling2’ was not declared in this scope
static constexpr auto value = buildStirling2(std::make_index_sequence<MAXIMUMN*MAXM + MAXIMUMM>{});
^
user.cpp: In instantiation of ‘constexpr<typeprefixerror> AllStirling2<200, 200>::value’:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !