For each loop not working

In DevC++ editor, for each loop is not working it is giving an error
79 11 D:\Desktop\Coding Blocks\Strings\intro.cpp [Error] ‘c’ does not name a type
82 2 D:\Desktop\Coding Blocks\Strings\intro.cpp [Error] expected ‘;’ before ‘cout’
83 1 D:\Desktop\Coding Blocks\Strings\intro.cpp [Error] expected primary-expression before ‘}’ token
83 1 D:\Desktop\Coding Blocks\Strings\intro.cpp [Error] expected ‘)’ before ‘}’ token
83 1 D:\Desktop\Coding Blocks\Strings\intro.cpp [Error] expected primary-expression before ‘}’ token

These r the error i m getting