Doubt regarding the template I am using

#include<bits/stdc++.h>
#include
using namespace std;

#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define ll long long
#define pii pair<int,int>
#define vi vector
#define mii map<int,int>
#define pqb priority_queue
#define pqs priority_queue<int,vi,greater
#define setbit(x) __builtin_popcountll(x)
#define zrobit(x) __builtin_ctzll(x)
#define mod 1000000007
#define inf 1e18
#define ps(x,y) fixed<<setprecision(y)<<x
#define mk(arr,n,type) type *arr=new type[n];
#define w(x) int x; cin>>x; while(x–)
#define fo(i,a,b) for (int i = a; i <= b; i++)
#define foa(i,a,b) for (int i = a; i < b; i++)

void io()
{
#ifndef ONLINE_JUDGE
freopen(“input.txt”, “r”, stdin);
freopen(“output.txt”, “w”, stdout);
#endif
}

int main()
{
io();

return 0;
}

i am using this template for submission of question but test cases are not passing but without this template there is no problem with the code and pass all the test cases

@Jainish-Patel-1007094602980100 yes this occured with some students the problem was that io function ifndef online judge. maybe cb compiler dont accept that io but it will work on other cp sites like cf cc etc no need to worry.
i hope its cleared if yes don’t forget to mark it resolved :smiley: