Help me in solving GSCV215 problem

My issue

My code

// Debug the following code to solve the problem

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

int main() 
{
 int t;
 cin>>t;
while(t--)
 {
   char N;
   cin>>N;
   cout<<2*N+1/2*N-1<<endl;
   N++;
  }
 return 0;
}

Learning course: C++ for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone

image
Check the image i have corrected ur code

i have solved this problem by replacing char to int and cout<<2*N;

try to change the code as i have done
And submit the ans
it is correct

image
Try this out

@ritikr916 did u finish solving the question ?

Debug this code - Why is this code incorrect - Problems - CodeChef
Check my code here for refrence

:smile: