| Problem | helloworld |
|---|---|
| User | R9q5P8 |
| Submission Time | 2026-03-09 20:59:05 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
helloworld.cpp: In function ‘int main()’:
helloworld.cpp:50:18: error: expected unqualified-id before ‘>’ token
50 | std::variant*> vtable;
| ^
helloworld.cpp:51:5: error: ‘vtable’ was not declared in this scope; did you mean ‘mutable’?
51 | vtable = new ConcreteExecutor();
| ^~~~~~
| mutable
helloworld.cpp:51:35: error: class template argument deduction failed:
51 | vtable = new ConcreteExecutor();
| ^
helloworld.cpp:51:35: error: no matching function for call to ‘ConcreteExecutor()’
helloworld.cpp:24:8: note: candidate: ‘template<class C, template<class> class W, int K> ConcreteExecutor()-> ConcreteExecutor<C, W, K>’
24 | struct ConcreteExecutor : AbstractExecutor<C, W> {
| ^~~~~~~~~~~~~~~~
helloworld.cpp:24:8: note: template argument deduction/substitution failed:
helloworld.cpp:51:3