How to make the online judge ignore my custom local header?in C++?

Revision en1, by TaskForce141, 2024-06-13 17:40:13

I use a header named printContainer.h for printing STL containers for debugging purposes, but I always have to comment it out before submission , sometimes I forget and get Compilation error which causes much problem and most importantly every second counts here... my template is like this:

#include <bits/stdc++.h>
#include <iostream>
#include <cmath>
#include<iomanip>
#include<cstring>
#include <queue>
#include "Templates/printContainer.h"

//Rest of the code

please tell me what to do? I heard ifdef or endif works but I couldn't make it work...maybe I am using the wrong way.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English TaskForce141 2024-06-13 17:40:13 678 Initial revision (published)