#include <cstdio> // Diagnostic logging (INCOMPLETE API) void logValue(int value) { std::printf("int=%d\n", value); } void logValue(float value) { std::printf("float=%.2f\n", value); } int main() { logValue(10); // OK logValue(2.5f); // Missing overload — must be resolved at compile time return 0; }
Test Cases
Test Results
Input
Expected Output
int=10 float=2.50