//// Includes
////
+#include <cstdio>
#include <iostream>
#include <string>
int main(int argc, char* argv[]) {
- // Disable IO buffering
+ // Disable IO buffering for C and C++ standard libraries
+ setvbuf(stdin, NULL, _IONBF, 0);
+ setvbuf(stdout, NULL, _IONBF, 0);
cout.rdbuf()->pubsetbuf(NULL, 0);
cin.rdbuf()->pubsetbuf(NULL, 0);
if (argc <= 1)
{
// Print copyright notice
- cout << engine_name()
- << " by Tord Romstad, Marco Costalba, Joona Kiiski" << endl;
+ cout << engine_name() << " by " << engine_author() << endl;
if (CpuHasPOPCNT)
cout << "Good! CPU has hardware POPCNT." << endl;