Unfair cheating obligation on me

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

int main() {
int t,p;
cin>>t;
while(t–) {
int n;
cin>>n;
if(n==1||n==3)
cout<<1<<endl;
else if(n==2)
cout<<2<<endl;
else if(n%2==0)
cout<<(n/2)+1<<endl;
else
cout<<(n-3)/2+1<<endl;
}
}

i have not copied this code from anywhere if someone has same code as me why am i punished for that