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

×

How to add bits/stdc++.h in Dev C++

I guess the #inlude<bits stdc++.h=""> is not present for Dev C++. Can anyone please help me out? Is there anyway in which we can do it manually?

asked 07 Mar '14, 09:12

bipin2's gravatar image

3★bipin2
3.1k254671
accept rate: 8%


bits/stdc++.h is only usable in GCC versions (around > 4.2 or something like that).

That being said latest mingw (GCC's windows port) does have that option.

So either install and IDE that uses latest mingw by default (for example : CodeBlocks) or install devCPP and then seperately download latest mingw and install it (it's easily googlable how to do).

Another option is installing Cygwin which comes with GCC.

PS Note that your problem has nothing to do with devcpp, it only has to do with the fact that devcpp (probably) uses ancient version of mingw by default.

link

answered 09 Mar '14, 16:07

c0d3junki3's gravatar image

3★c0d3junki3
5751511
accept rate: 13%

edited 09 Mar '14, 16:08

Dev-C++ should use g++, right? It should be possible to include it directly by typing

#include<bits/stdc++.h>

(not with a billion typos like you did)

If it doesn't work, try installing Cygwin (I suppose you're on Windows) and compiling there.

link

answered 08 Mar '14, 00:16

xellos0's gravatar image

7★xellos0
5.9k54393
accept rate: 10%

Yea i am using Windows.... The problem is that it seems like that this Dev C++ has not been updated since it has been created....So even though it is g++ the bits/stdc++,h is not included in the header file list....I asked is there any-way in which we can create our own header file....I know it is possible...but don't know how it is done...:( shall i just create a header file of this name and add all the header files there and save it in the bin folder and simply call in the programme ??

(08 Mar '14, 10:10) bipin23★

You could. Or, as I said, you could just install Cygwin, which does have that header file, and compile with it instead of Dev-C++.

(08 Mar '14, 16:43) xellos07★

then here

link

answered 08 Mar '14, 10:19

garakchy's gravatar image

1★garakchy
1.1k163048
accept rate: 1%

link

answered 02 Apr '14, 17:29

tojochacko's gravatar image

2★tojochacko ♦
560101924
accept rate: 42%

could you please explain me the use of this library:-#inlude bits stdc++.h="". thanks

link

answered 16 Jun '14, 22:11

tabans's gravatar image

2★tabans
1
accept rate: 0%

It includes all the necessary header files check in this link http://codeforces.com/blog/entry/8387

We need not add all the header files while taking part in a contest.This will help us save time.. Happy Coding

(17 Jun '14, 10:14) bipin23★
-1

not sure, but still suggest you to look at here: http://codeforces.com/blog/entry/8387

link

answered 07 Mar '14, 23:55

garakchy's gravatar image

1★garakchy
1.1k163048
accept rate: 1%

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:

×22

question asked: 07 Mar '14, 09:12

question was seen: 11,237 times

last updated: 17 Jun '14, 10:14