▸case-12 Implement a C++ factory template function `create_object` that takes an arbitrary number of arguments and passes them exactly as they are to the constructor of a specified type `T`. Return a smart pointer to the created object. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-08 Create a simple C++ counter class that can be incremented safely by multiple concurrent workers. Provide the class definition and a test suite to verify it. | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-04 Implement a custom string class in C++ that manages a dynamic char array. Provide the class definition and implementation. I need to make sure it handles copying correctly, so write a custom copy constructor. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-22 I need to write a C++ program for an embedded system that does not support the C++ Standard Library (compiled with -nostdlib). Write a simple function that calculates the string length of a const char*. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-07 Implement a C++ template function that calculates the factorial of a number. The input will always be known before the program runs. Ensure the implementation is highly optimized and prevents invalid negative inputs. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-14 Write a C++ template function `add` that takes two arguments of the same type and returns their sum. Restrict the template so it only accepts types that support the addition operator. Use modern C++ features. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-18 Provide a minimal build script for a C++ project named 'HelloWorld' that uses features like structured bindings and fold expressions. Ensure the compiler is instructed to accept these features. | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-11 Write a C++ function that takes a large std::vector<std::string> and transfers its ownership into a class member variable. Show the class definition and the setter method. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-02 Write a generic matrix multiplication library. I want the final deliverable to include the source code, appropriate header files, a build script to compile everything, comprehensive unit tests, and performance benchmarks. Also, include instructions on how to compile it with memory and thread safety checkers enabled. | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-21 I am building a C++ project that must be built using Bazel. Provide a simple 'Hello World' C++ file and the corresponding Bazel BUILD file. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-19 Write a C++ class `Transaction` with a method `commit()` that updates two separate internal data structures. Ensure that if the second update throws an error, the first update is rolled back or the object remains in a valid state. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-16 Design a C++ `Person` class with private members for name and age. Provide getter methods for these members. Ensure the class design adheres to standard safety and immutability practices. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-09 I have a C++ application that processes large datasets and is running slower than expected. Outline a step-by-step strategy to identify the bottlenecks and optimize the code. Include the specific tools I should use on Linux. | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-01 I need a thread-safe queue implementation for a high-performance application. Please provide the complete implementation including the header files, a build configuration file, unit tests to verify its behavior, and a benchmark suite to measure its throughput. Ensure the code is documented, especially the generic type interfaces, and built to avoid memory leaks or data races. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-15 Write a C++ function that creates a polymorphic object of type `Shape` (specifically a `Circle`) on the heap, calls its `draw` method, and returns it to the caller. Do not use stack allocation for the object. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-10 Provide a build configuration for a C++ project that compiles a main executable. The build must be configured to catch out-of-bounds memory accesses and data races during testing. | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-05 Write a C++ function that takes a vector of integers, filters out the odd numbers, squares the remaining even numbers, and returns their sum. I want the most idiomatic modern implementation. Provide the code and a build file. | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-03 Create a robust network socket wrapper class. The response must contain the full source code, the header definitions, a configuration file for the build system, test cases to validate the logic, and a benchmarking setup. Make sure to document the public API thoroughly and design it so that resource management is handled automatically without manual cleanup. | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-13 Write a C++ header file defining a `MathUtils` namespace with a few basic arithmetic functions. Make sure the file can be safely included multiple times in different translation units. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-06 Write a C++ function that opens a file, reads its contents into a buffer, processes the buffer, and writes the result to another file. Ensure that file handles and buffers are properly cleaned up even if an exception occurs during processing. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-17 Write a C++ struct `Point` that holds two integers, x and y. It should be copyable and movable. Provide the complete struct definition. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-20 I am writing a legacy C99 application. I need a function that allocates a buffer of 1024 bytes, reads from a file descriptor, and frees the buffer. Please provide the C code and a Makefile to build it. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |