Skip to content
Snippets Groups Projects
Commit c2b6c903 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

[fib] Use std::cerr for error reporting instead of fprintf(stderr, …)

parent abf58cd9
No related branches found
No related tags found
No related merge requests found
#include <cassert>
#include <cstdio>
#include <iostream>
#include "mazstab-backend.hpp"
#include "mazstab.hpp"
......@@ -42,7 +42,7 @@ auto mzs_benchmark_verify() -> mzs::VerificationResult {
int expect = fib_fast(n);
if (expect != m) {
fprintf(stderr, "fib(%d)=%d (expected %d)\n", n, m, expect);
std::cerr << "FAILED fib(" << n << ")=" << m << " but expected" << expect << std::endl;
return mzs::VerificationResult::failed;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment