#include using namespace std;
void fact(int n){ fact(n); }
int main() { // your code goes here ios_base::sync_with_stdio(false); cin.tie(0); int t;cin>>t; while(t–){ int n;cin>>n; fact(n); } return 0; }
The code seems fine to me, but then I see you have now got accepted. Did you find the problem with it?
Sorry, realised a bit later that was submitting it for the wrong problem.
Ah ok. You might want to edit the post to remove the code, as there are some who will simply copy and submit it.