You are not logged in. Please login at www.codechef.com to post your questions!

×

cin and cout

why is it displaying the message compiler does not support cin and cout when namespace std and other header files are included appropriately?

asked 21 Aug, 20:26

ambika011's gravatar image

0★ambika011
1
accept rate: 0%

2

Please paste your code as well so that we can figure out what went wrong.

(21 Aug, 20:36) utkalsinha5★

have you included iostream? just asking..

(21 Aug, 21:22) kauts_kanu5★

have you selected the appropriate compiler?

link

answered 21 Aug, 22:29

sudip_95's gravatar image

3★sudip_95
6956
accept rate: 10%

The header file mentioned in online compiler is represented as #include <iostream>(same in dev compiler) whereas in Turbo c++ it is represented as #include<iostream.h>. The change is here(online compiler) you no need to include '.h'. I think sometimes occur due to these problems. If you include your code it is easy to find out problem. Orelse in your compiler library files are not included properly

link

answered 22 Aug, 23:50

ajith08's gravatar image

2★ajith08
312
accept rate: 0%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • 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:

×156
×143
×110

question asked: 21 Aug, 20:26

question was seen: 133 times

last updated: 22 Aug, 23:50