# অক্ষর গণনা - রানটাইম এরর

 0 রানটাইম এরর দেখাচ্ছে। কিন্তু ভুলটা ধরতে পারছি না। সমস্যা লিঙ্ক: http://cpbook.subeen.com/2016/02/blog-post_37.html ``` #include #include int main() { int i, j, t, b; char s[1001]; int count[52]; scanf("%d ", &t); for (i = 0; i < t; i++) { gets(s ); int b = strlen(s); for (j = 0; j < 52; j++) { count[j] = 0; } for (j = 0; j < b; j++) { if (s[j] >= 'A' && s[j] <= 'Z') { count[s[j] - 'A']++; } if (s[j] >= 'a' && s[j] <= 'z') { count[(s[j] - 'a') + 26]++; } } for (j = 0; j < 52; j++) { if (count[j] != 0) { if (j >= 0 && j <= 25) { printf("%c = %d\n",'A'+j,count[j]); } else { printf("%c = %d\n",71+j,count[j]); } } } } } ``` asked 31 Oct '17, 18:10 nishat 111●1●16

 1 কোড ঠিক অাছে (I hope)। মেইন ফাংশনের শেষে `return 0` অ্যাড করলেই এসি অাসবে। answered 05 Nov '17, 13:14 unreleased 51●3 হ্যাঁ, accepted হয়েছে।অসংখ্য ধন্যবাদ। (06 Nov '17, 13:57) nishat
 toggle preview community wiki:

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

Question tags:

×416
×90
×55
×38
×6

question asked: 31 Oct '17, 18:10

question was seen: 1,009 times

last updated: 06 Nov '17, 13:57