0

The code trainer called "extra terrestrial" marks all results as wrong even though each answer is correct, does anyone know why?

Even though all my answers were correct, I marked all of them as wrong.

29th Aug 2020, 9:01 PM
Reginmund Morales
Reginmund Morales - avatar
6 ответов
+ 1
Can you share the code?
29th Aug 2020, 9:14 PM
Steven M
Steven M - avatar
+ 1
Thank you, I have understood better
29th Aug 2020, 9:52 PM
Reginmund Morales
Reginmund Morales - avatar
0
#include <iostream> using namespace std; int main() { string x; cin >> x; int a = x.length(); for (int b = a; b >= 0; b--) { cout << x[b]; } return 0; }
29th Aug 2020, 9:32 PM
Reginmund Morales
Reginmund Morales - avatar
0
#include <iostream> using namespace std; int main() { string word; cin >>word; string reverse; for(int i=word.length();i>=0;i--){ reverse+=word[i]; } cout << reverse; return 0; }
10th Apr 2022, 4:44 PM
BENtO
BENtO - avatar
0
Same here 🤦🏿‍♂️
10th Apr 2022, 4:44 PM
BENtO
BENtO - avatar