Help me in solving BMCV212 problem

My issue

My code

// The code below is incorrect. Debug the code to solve the problem
#include <bits/stdc++.h>
using namespace std;

int main() 
{
 int t;
 cin>>t;
 while(t--)
  { 
   int X,N;
   int p = X/10;
   int score = p * N;
   cout<<score<<endl;
   }
 return 0;
}

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

Hi @ahsan_38,

The solution is pretty simple and I’m sure you will get it as well. Try to write code yourself and then compare it with given code. If you are still unable to debug code, let me know.

Happy Coding!

you have not taken x,n as input

you have to take x,n as input

(cin>>x>>n;)