please answer me 3 question 1: if i am not including header file (VECTOR)in my code then i am getting ans correct??? 2:if i declaring vector in 25 line rather then in 10 line then it is showing error why??? 3:what it use of <bits/stdc++.h> header file and why vector header file not working in this case 4: iam getting correct ans in online compiler but not getting in dev c++??? it not showing o/p??? which compiler u will recommend me???
Https://ide.codingblocks.com/s/186000
Hye @kailash_01
- Header file Vector just adds the DS to your available classes you can use while implementation. It doesn’t affect the logical answer of your code.
- If you add class Vector after the first usage of vector in your code, then the compiler doesn’t know what Vector is so it gives error.
- <bits/stdc++.h> : https://www.geeksforgeeks.org/bitsstdc-h-c/
- Dev C++ is an outdated IDE. I would recommend you to use atom or CB IDE.
If your doubt is resolved please mark it as closed.