c语言样例都对,可是为什么是0分
#include<bits/stdc++.h>
using namespace std;
int main() {
char str[101];
cin.getline(str,101);
int start = 0;
for(int i = 0; i <101; i++){
if(str[i] == ' ' || str[i] == '\0'){
for(int j = i - 1; j >=start; j--){
cout << str[j];
}
start = i + 1;
if(str[i] == '\0'){
break;
}
cout<<endl;
}
}
return 0;
}