STRINGS-DIFFERENCE IN ASCII CODES, Unable to pass test cases

It shows only ‘Success’ in Assignment ide
but works fine at ide.codingblocks.com
Code is working absolutely fine but I am unable to go through test cases.
Heres my code https://ide.codingblocks.com/s/56186

#include
#include
using namespace std;
int main() {

string a;
getline(cin,a);
int n;
cout<<a[0];
for(int i = 1; i<a.length(); i++){
    n = a[i-1]-a[i];
    cout<<n<<a[i];
}
return 0;

}

Hey Lakshay, your code is correct and its passing all the test cases, try to submit it again.

Hey Lakshay, as you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required. And please mark your doubts as resolved in your course’s " Ask Doubt " section, when your doubt is resolved.