#include<iostream>#include<string.h>using namespace std;
int main(){ char str[36]; cin>>str[36]; int x= strlen(str); cout<<x; return 0;}
INPUT ::qwerty
OUTPUT ::3
Problem is with "cin>>str[36];"It should be "cin>>str;"