I think the best C++ IDE on Linux is QtCreator. It looks cute and only in this IDE I can debug STL containers and algos without going to their .h files :D
But sometimes it happens(but not sometimes, often), that you can't cin of scanf in this IDE(or debugger shows you an error ><). You can solve these problems by making these easy steps :)
1. If cin of scanf doesn't work
Tools -> options -> Environment -> System-> Terminal(change to xterm -e)
External Terminal : change to xterm -e -geom %Wx%H+%x+%y -e vi %f +%l +"normal %c|"
In left panel(Projects -> Run settings -> click on "Run in Terminal"
2. If debugger shows you an error, type in Terminal:
sudo echo 0 > /proc/sys/kernel/yama/ptrace_scope
Good luck :)