×

# HOLE IN THE TEXT

 0 i using c++ what is the problem with my code it is showing wrong answer #include #include using namespace std; int holecount(char one); int main() { int i,j,k; int n,num=0; cin>>n; for(i=0;i>str; for(j=0;j

 0 I think your algo will be shorter if your switch statement will just check only for letters A B D O P Q R answered 16 Nov '14, 17:29 135●1●6●19 accept rate: 28% Yes, it is an improvement, but it is not a problem... Also combibation of return and break is strange. (16 Nov '14, 17:58)
 0 Your code cannot be compiled, probably you lost () for length during the copy and paste operation. Your code returns 12 for input 2 A B  answered 16 Nov '14, 17:58 16.9k●49●115●225 accept rate: 11%
 0 As given in output format, output of each test case must be printed on individual single line. So print a '\n' after printing the answer for each case. Change the statement to `cout<
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×856
×690
×643
×355
×205

question asked: 16 Nov '14, 15:59

question was seen: 851 times

last updated: 16 Nov '14, 19:09