### o0o0o's blog

By o0o0o, 4 years ago, ,

I personally feel good to use Codeblocks, its interface so good and feel free to code !

Can I customize the keyboard shortcuts, shortcut like Vim ?

•
• +20
•

 » 4 years ago, # |   +3 personally i love to use eclipse as is autocompletion is smarter than the one in codeblocks.
 » 4 years ago, # |   +20 Visual Studio 13 because of autocompletion.
•  » » 21 month(s) ago, # ^ |   0 but visual studio doesn't have gnu g++ compiler right? That's why i stopped using VS 13.
•  » » » 21 month(s) ago, # ^ |   0 Bad reason.
•  » » » 21 month(s) ago, # ^ |   0 Actually, after this 21 months I've changed Windows to Ubuntu, and now I use CLion. If I want to specify some libs, then I compile project in console with all necessary keys.
 » 4 years ago, # |   +11 I use dev C because it is trashy. that way i could show everybody my pure programmings skills :D
•  » » 4 years ago, # ^ |   +83 Just wrote a contest on dev C today. It's shit. Do not write a contest on dev C.
•  » » » 3 years ago, # ^ |   0 I had to to an on location contest using dev C++. I understood what you meant :-)Honestly, on Windows, Codeblocks is enough and really bullet-proof. I personally use freopen to use I/O files if I really need to, otherwise the console provided by Codeblocks is usually enough.
•  » » » » 2 months ago, # ^ |   0 Why auto does not work in codeblocks ?
•  » » » » » 2 months ago, # ^ |   +1 Maybe you haven't activated the flag to use c++11 or c++14. Go to Settings->compiler->compiler flags and check the c++11 one.
•  » » » » » » 2 months ago, # ^ |   0 Thank you sir ..........I did the same ...... now it's working.
•  » » 15 months ago, # ^ |   0 I also love to use Dev C, because it loads very fast, unlike eclipse or visual studio.
•  » » 15 months ago, # ^ |   +10 But now you don't :)
•  » » 11 months ago, # ^ |   0 Am I the only one who is too lazy to get used to another IDE so they ended up tied with a "trashy" IDE that I were first introduced? :/
•  » » » 8 months ago, # ^ |   0 No
 » 4 years ago, # |   +26 I mostly use Codeblocks 13.12. I love it. It autocompletes me. Sometimes I use Gedit or Sublime Text and I compile my sources using the linux terminal.
 » 4 years ago, # |   0 I use Codeblocks :)
 » 4 years ago, # |   +10 I use Far Manager because it is very smart and it is very easy to configure files with Far.
 » 4 years ago, # |   +9 I like Sublime Text. I don't need much in an IDE, though — so I use it mostly because it looks good :D
•  » » 4 years ago, # ^ |   +1 do you use it compiling separately in terminal ?
•  » » » 4 years ago, # ^ |   +2 Yes.
•  » » » » 4 years ago, # ^ |   0 you should use Sublime Input, if you put your stdin in a comment, sublime input package will build the cpp file and then run it on your given stdin.. https://packagecontrol.io/packages/Sublime%20Input
•  » » » » » 4 years ago, # ^ |   0 You know, if I put the stdin in a separate file, and then press Alt+Tab+(Up+Up+Enter)x2 (about 1-2 seconds), the same will happen and there's no need to rely on packages that I may or may not have access to.
•  » » » 4 years ago, # ^ |   +8 Or you can do Ctrl/Cmd + B if it's just one file. You can also set it up for using the makefiles.
•  » » » » 4 years ago, # ^ |   +11 Ctrl+B is pretty nice (vs compiling in terminal). You get automatic scrolling to any line that has a compiler error (which most IDEs have, but terminal doesn't), and you can customize flags so you don't have to remember what to type in the terminal all the time. I only use -O2 --std=c++11 -Wall -Wl,--stack but of course you can go as crazy as you want.
•  » » » 21 month(s) ago, # ^ |   0 I use SublimeText with this — #ifndef ONLINE_JUDGE freopen("in", "r", stdin); #endif And also customized the Build Script to have output in the sublime shell :) No need to run in separate terminal. And also this works faster than any method, in code testing. Just press Ctrl + B and you have the output :)
•  » » » » 2 months ago, # ^ |   0 Can you tell me how you have customized the Build Script? Also build is taking too long for c++11...
•  » » 4 years ago, # ^ |   +1 What OS do you use for programming?
•  » » » 4 years ago, # ^ |   +12 Usually Windows with Cygwin, sometimes Linux.
•  » » » » 4 years ago, # ^ |   -7 Okay, thanks for the response!
•  » » » 4 years ago, # ^ |   0 Ubuntu :D I almost never use Windows.
•  » » » » 23 months ago, # ^ |   0 Nice to see you around ;)
•  » » » 11 months ago, # ^ |   -8 ubuntu
•  » » » » 11 months ago, # ^ |   +8 Thanks!
•  » » 8 months ago, # ^ |   0 I use Sublime Text also :D Been solving in python mainly but switching to c++ now
 » 4 years ago, # | ← Rev. 2 →   0 [deleted]
•  » » 4 years ago, # ^ | ← Rev. 2 →   +3 Ubunut??? Is it an IDE???
•  » » » 4 years ago, # ^ | ← Rev. 2 →   0 [deleted]
•  » » » » 4 years ago, # ^ |   +20 Terminal isn't an IDE either.
•  » » » » » 4 years ago, # ^ | ← Rev. 2 →   -8 [deleted]
•  » » » » » » 4 years ago, # ^ |   +11 I use it all the time to compile.GNU is an operating system, not an IDE.
•  » » » » » » » 4 years ago, # ^ | ← Rev. 2 →   0 [deleted]
•  » » » 4 years ago, # ^ | ← Rev. 2 →   0 [deleted]
•  » » » » 4 years ago, # ^ |   0 Are you referring to vi editor? (http://en.wikipedia.org/wiki/Vi)
 » 4 years ago, # |   -7 I use gedit :P
•  » » 4 years ago, # ^ | ← Rev. 2 →   -10 [deleted]
 » 4 years ago, # | ← Rev. 2 →   +20 HiI use Emacs because it has some good property.
•  » » 15 months ago, # ^ |   +16 That's a good operating system, but I prefer Ubuntu. I use Sublime Text with terminal to compile, and I use < and > to redirect input and output from and to files.
 » 4 years ago, # |   +23 Vim mostly.Because I don't know how to get out of it.
•  » » 4 years ago, # ^ |   0 I want to use VIM , its feature is too good !
 » 4 years ago, # |   0 I see sometime , somebody works in black interface like TC , which interface do u like ? (black, white or others )
•  » » 4 years ago, # ^ |   0 White is better than others I think!
•  » » » 21 month(s) ago, # ^ |   0 I prefer the Black :) ..
 » 4 years ago, # |   +3 I use Turbo C++. Life's pretty rough.
 » 4 years ago, # |   0 I use VIM everywhere because its very easy to use (for me) and has very little or no distractions. I have a few shortcuts set up for programming contests for compiling. There is a plugin called syntastic which is very useful for syntax checking and highlighting for C++.
•  » » 3 years ago, # ^ |   0 Could you provide your .vimrc file?
•  » » » 3 years ago, # ^ |   0 This is my base vimrc: https://github.com/sampritipanda/dotfiles/blob/master/vimrcThese are my plugins: https://github.com/sampritipanda/dotfiles/tree/master/vim/vundlesThen I have custom settings for each plugin: https://github.com/sampritipanda/dotfiles/tree/master/vim/settings
•  » » » » 15 months ago, # ^ |   -9 I love you xd
•  » » » » » 15 months ago, # ^ |   0 Why? e.e I love vim :|
•  » » » » 2 months ago, # ^ | ← Rev. 2 →   0 Hey sampriti beside do we need to learn how to operate vim. Like there is no Ctrl + C (for copy) option in Vim and all that.
•  » » » » » 2 months ago, # ^ |   +3 Yeah, vim is very different to your normal text editors. It's difficult and time consuming to get started with, and you will be very slow in using it at the beginning. I'd probably just recommend Sublime Text.
 » 4 years ago, # | ← Rev. 2 →   +1 Sublime Text.I split the window in 4 parts — code (on the left), compilation output (just below the code), problem input and problem output (both on the right).I find snippets are very helpful to automate common tasks, and it provided basic auto-complete that helps to avoid typos. It's easy to compile/execute from within the editor using CTRL + SHIFT + B, and jump to compilation errors from the compilation output.One of the manual things that I haven't got around automating is when the process gets stuck and needs to be killed. Then I find the process id manually and kill it in the terminal.
•  » » 15 months ago, # ^ |   0 Previously, I used Codechef ide but from last 2-3 months I am using Sublime Text by splitting the window as you mentioned. Its really fast and cool. Thanks.
•  » » 8 months ago, # ^ |   0 Use this when your program gets stuck.Tools -> Cancel Build
•  » » 2 months ago, # ^ |   0 I use this timeout script to deal with the problem.Modify Build Script and add timeout --no-info-on-success --detect-hangups -m 1000000 -t 10 before running the program. This sets the Memory Limit to 1GB and Time Limit to 10 seconds. If your program takes more than that it will kill it automatically. Also it detects hangups, which happened to me a lot, that is when you can't even open a terminal and only solution is restarting PC. xD
 » 4 years ago, # |   0 I use Codeblocks to write competitive programming codes, because it's used in most programming contests and it's fast, open-source. I use VS2013 and Eclipse to write my homework, because they're more convenient.
 » 4 years ago, # |   +5 I use codeblocks because it's easy to use.
 » 4 years ago, # |   +8 I think this topic is very well covered here.
 » 4 years ago, # |   0 My heart belongs to MS Visual Studio
 » 4 years ago, # |   0 Intellij Idea. Most of people who use java use it.
 » 4 years ago, # |   0 Screw you all, real men wrote codes with notepad + cmd!! who needs IDE anyway for competitive programming :p
•  » » 4 years ago, # ^ |   0 Enjoy Notepad crashing when opening large input files. Just any editor isn't good enough, it needs to actually work well.
•  » » 4 years ago, # ^ |   +4 Excuse me, but as I mentioned before, real men use butterflies.
•  » » » 4 years ago, # ^ |   0 >implying I'd go catching butterflies before each contest...
•  » » 4 years ago, # ^ |   0 And what about tracing? Some plugins?
 » 4 years ago, # |   0 I use Ubuntu SDK... Because it's also very smart.Ohhellotextest
 » 4 years ago, # |   0 no ide. I use nano on a tty :3 . mostly because I'm too lazy to install an ide.
 » 4 years ago, # | ← Rev. 2 →   0 Personally, I use GNU Emacs.( http://xkcd.com/378/ :D)The main reason is that it has easy commands for almost everything -- basic cursor movement,deleting/inserting text,buffer creation/movement/deletion etc. It also has quite a lot of modes(c++ mode, java mode, fundamental mode), which make it easy to use for all languages. It has also got a pretty easy to understand tutorial, which explains the basics.
 » 4 years ago, # | ← Rev. 2 →   0 I have a terrible experience till now :DI have almost tried every ide and every text editor and had used visual studio if i had an ide mood and far manager if i'm in an editor mood xD ( they are two powerful as they are :) ).now i've switched to mac os since about 4 days and till now i can't determine which editor/ide i would use.
 » 3 years ago, # |   0 I use Vim with steroids :P --> https://github.com/carlhuda/janus
 » 23 months ago, # | ← Rev. 2 →   +5 I use Vim in Terminal.
 » 23 months ago, # |   0 I love to use Sublime text <3
 » 23 months ago, # |   -7 I love write program in C# and VS 2013 IDE.
•  » » 23 months ago, # ^ | ← Rev. 3 →   +16 Once I decided to use Visual Studio for a CF round so I started it a few minutes before the start of the contest and it was ready to use 15 minutes after the contest had already finished. Since then I have never tried to start it again.
•  » » » 23 months ago, # ^ |   0 It's absolutely unusual, unless in first run.Visual Studio is slow in first run. it take several minutes to load
 » 21 month(s) ago, # |   +21 Vim is the only option.
•  » » 21 month(s) ago, # ^ |   0 I agree with you yashar_sb_sbVIM is the best choice for programmer.
 » 21 month(s) ago, # | ← Rev. 2 →   +6 I use CLion on Arch Linux for easy compilation, nice autocomplete, a nice debugger, live templates, and its built-in static analysis.Maybe I depend too much on tooling but who cares ¯\_(ツ)_/¯
 » 21 month(s) ago, # | ← Rev. 2 →   0 I program in Java. I really like IntelliJ. Its debugger is absolutely amazing! However, I normally use BlueJ, because I have a shit PC with horrible RAM and programs on IntelliJ take forever to compile.
 » 21 month(s) ago, # |   +5 I use notepad++ and g++(cygwin) to play contest.
 » 21 month(s) ago, # |   0 I use Sublime Text . I generally write codes in java . And if one has good control over his/her language the editor provides a pretty decent platform to compile , segregate input/output files in tabs and also decent styling.
•  » » 21 month(s) ago, # ^ |   0 > java> sublime LOL, why not IDEA?
 » 21 month(s) ago, # |   0 IDEONE lol
 » 21 month(s) ago, # |   +3 I Use Atom... it is cool enough :)
•  » » 15 months ago, # ^ |   0 I have also used it, then I switched to sublime text 3. I think sublime is better. If visual assist was free, then I guess visual studio would be better.
 » 21 month(s) ago, # |   0 I use VS when my labtop being with me when using others computers , i use cpp.sh or Codeforces tester. or if the computer contain gcc then i use any small editorI like to use JetBrains too
 » 21 month(s) ago, # | ← Rev. 2 →   0 ATOM IDE is best to use, simple sublime text like editor and I can compile in my computer itself.
•  » » 21 month(s) ago, # ^ |   0 What OS do you use with Atom?
•  » » » 21 month(s) ago, # ^ |   0 Atom is supported in multiple OS, I use it using windows 10...
•  » » » » 21 month(s) ago, # ^ |   0 I know. I asked becouse i have some problems whith Atom installation on Linux.
•  » » » » » 21 month(s) ago, # ^ |   0 Go through these tutorials, it might helpLink1Link2
 » 21 month(s) ago, # | ← Rev. 8 →   0 I use Sublime text 3.
 » 21 month(s) ago, # |   0 Codeblocks 16.01 is really good. They've improved many features than the previous versions(autocompletion, debugger, etc...) and fixed some issues(for example in the previous versions when you open a new project without closing the program the autocompletion doesn't work unless you close the code file and re-open it, now I don't see such issue).
 » 21 month(s) ago, # |   0 I use Programmers Notepad (http://www.pnotepad.org/) and I am quite happy with it. It is lightweight, has no distraction, can be downloaded as a portable version, can be easily configured for competitive programming Here is how to set it up to compile your C++ programs => http://algorithm4fun.blogspot.be/2015/08/compiling-c-programs-on-programmers.html
 » 21 month(s) ago, # |   +1 TextWrangler, with Terminal (macOS Sierra). Sometimes IDLE, as I may switch from Python to C++ and vice versa.When I am at school, I use gedit, with Terminal (Linux Debian). I wish they had SublimeText on their computers, though.
 » 21 month(s) ago, # |   +1 I have used KDevelop since I switch to linux and I have some nostalgic relationship to that IDE :D And yes, I like its semantic analysis and the way of coloring the variables — each variable has a different color :D
 » 21 month(s) ago, # |   0 For competitive programming I mostly use Codeblocks because it's easy to use and sometimes Vim. Eclipse for Java/Python.
 » 15 months ago, # |   0 I prefer to use Codelobster with special plug-ins for popular frameworks.
 » 15 months ago, # |   +54 Mircrosoft Word
 » 15 months ago, # |   0 I love to use Code::blocks. It's easy to use and I love the colors the keywords in the editor.
 » 15 months ago, # |   0 Atom is the best .... :)
 » 15 months ago, # |   +5 VIM <3, I can not go out either :,'v
 » 15 months ago, # |   +8 Geany, simple interface, and very lightweight. But lately I start shifting to Visual Studio Code, simple and clean interface, and the integrated terminal is very useful.
 » 15 months ago, # |   +5 This blog is asking what IDE do you use not if you write in text editor and compile in terminal. Anyway mentioning that here or even doing that in your life won't get you laid.
 » 15 months ago, # |   0 I use Sublime Text 3.
 » 15 months ago, # | ← Rev. 2 →   +3 I love IntelliJ IDEA Community Edition. I code using Java and I think it is the best IDE for Java Coders. The reasons are: Classy interface Option for git integration Option for gist support(I need it as I do blogging) CHelper extension support for automatic parsing of test cases & testing(OMG thing. Go to this link to learn more about this extension. I'm sure you will love it) Topcoder plugin support(Another OMG feature)
»
11 months ago, # |
-35

ucoder

use this to solve problem A

# include <bits/stdc++.h>

int n, x ; int a[330]; set < int > myset; int main() { cin >> n >> x; for(int i=0; i<n; i++) cin >> a[i]; for(int i=0; i<n; i++) myset.insert(a[i]); int ans = 0; for(int i=0; i<x; i++) { if (!myset.count(i)) { ans++; } } cout << ans << endl; }

•  » » 11 months ago, # ^ |   -12 MrMafa5 you too
 » 11 months ago, # | ← Rev. 3 →   0 I code in Java. I usually use BlueJ, but I have recently started using IntelliJ IDEA. I like it better. It feels better.
 » 11 months ago, # |   0 I love Emacs because its very extensible, with a terminal emulator that is already available in it. Creating files, editing, and all the features in all other IDEs are all available with lots of other features.
 » 8 months ago, # |   +1 Hi! I've been working on a lightweight ide for a while. The first release is here, keeping in mind what I really need during the contest. https://github.com/svr8/Desk Would be happy to hear a feedback.
•  » » 8 months ago, # ^ |   0 This looks really neat!
•  » » » 8 months ago, # ^ |   0 Thanks :)
•  » » 3 months ago, # ^ |   0 Fixed the file manager bugs: https://github.com/svr8/Desk
•  » » 2 months ago, # ^ |   0 Is It For Java Only ? Or I can write on it C++ ?
•  » » » 2 months ago, # ^ | ← Rev. 2 →   0 It supports C++(python and many more) syntax colors. In order to compile/execute, you need to know the CMD commands for your language and create a build file(keeping in mind that you are executing in cmd being at a location where application was installed).
•  » » » » 2 months ago, # ^ |   0 Do you Have Video or Explanation ?I am not good in such things
•  » » » » » 2 months ago, # ^ |   0 Alright, will work on it. Also, I'll roll out a new update soon. It will automatically detect Java, Python and C++ so you don't have to create build files for them.
•  » » » » » » 2 months ago, # ^ |   0 Okay , I'm Waiting For the Update :)When you publish it Please tell me
 » 8 months ago, # |   +17 Notepad. It makes me a pro
 » 8 months ago, # |   +3 Sublime Text 3. Light & cool.
 » 8 months ago, # |   0 Sublime Text 3 with vintage(vim mode) on :D
 » 8 months ago, # |   0 I've been using eclipse since its latest release was Kepler, think that was around 2014. Still use it although it has some bugs still.
 » 8 months ago, # |   -10 Easy way to detect people with IQ < 90
•  » » 8 months ago, # ^ |   0 :s/< 90/> inf/g
•  » » » 8 months ago, # ^ |   0 s|IQ|1/IQ|g
•  » » » » 8 months ago, # ^ |   0 u yy 10000p :wq
•  » » » » » 8 months ago, # ^ |   0 "vim-users-have-low-iq.txt" E212: Can't open file for writing Press ENTER or type command to continue 
 » 8 months ago, # |   +1 not ide but my favorite program to code is visual studio code :D
•  » » 8 months ago, # ^ |   0 me 2, VSCode in macOS.
•  » » » 8 months ago, # ^ |   0 I'm in windows.
•  » » » » 8 months ago, # ^ |   0 VSCode is much better than Xcode!
 » 8 months ago, # |   0 I think, it's better to use editor.
 » 2 months ago, # |   0 I use vim on cygwin terminal. Once you get used to the shortcuts it's hard to back to editors that force you to use a mouse. It's very customizable, and I have my own scripts to quickly compile/run/debug etc.One small nice thing about cygwin/unix like environment is you can redirect input using "<" to read from a file, much more convenient than using freopen and having to comment it out when you submit.
 » 2 months ago, # |   0 How to configure sublime-text build file in Ubuntu? This.... https://medium.com/@sarthakgupta072/setting-an-environment-for-competitive-programming-for-c-on-ubuntu-a644083cb06d
 » 2 months ago, # |   0 I use Atom with a package called AFCP(I wrote it myself :) ).If anybody is interested you can check this blog post. -> Blog Post
 » 2 months ago, # |   0 am i the only one who uses online IDE's provided by codechef and rextester to compile codes.??
•  » » 2 months ago, # ^ |   0 hhahhaha
 » 2 months ago, # | ← Rev. 2 →   0 intellij which is used by petr for javaand codeblocks and far manager for c/c++pycharm for pythononlinegdb.com for online testing
 » 2 months ago, # |   0 Emacs .Also read this http://martinsosic.com/development/emacs/2017/12/09/emacs-cpp-ide.html This makes it best , convenient and cross-platform ide for use.
 » 2 months ago, # | ← Rev. 2 →   0 I am using Codeblocks. It's Fast and easy to use
 » 2 months ago, # |   0 For java intellij + chelper for C codeblocks(but it's quite buggy in ubuntu)