Can u read this problem

https://ide.codingblocks.com/s/50013

sir my code is running on sample case but it is not passing any test case. wht is the error ?

Hey Yukti, can you please mention the problem’s exact name also for which you have written this code.

You are given a string, S, written in Camel Case.

Hey, I am asking the problem’s name

CAN YOU READ THIS?
You are given a string, S, written in Camel Case. Find All The Words Contained In It

Sample Input:
IAmACompetitiveProgrammer

Sample Output:
I
Am
A
Competitive
Programmer.

Hey Yukti, your for loop is not including the last character of the string so update your for loop’s terminating condition as for(int i=0;i<len;i++). For eg.
input:
AmACompetitiveProgrammer

expected output:
Sample Output:
I
Am
A
Competitive
Programmer

but your code’s output:
I
Am
A
Competitive
Programme

So, last line of output is not matching.

U have taken len-1 in loop.
use len it will pass every testcases.