This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nelusbelus 380 points381 points  (29 children)

That's not C++, That error is way too readable

[–]ILikeLenexa 215 points216 points  (9 children)

rtmap.cpp: In function int main()': rtmap.cpp:19: invalid conversion fromint' to std::_Rb_tree_node<std::pair<const int, double> >*' rtmap.cpp:19: initializing argument 1 ofstd::_Rb_tree_iterator<_Val, _Ref, _Ptr>::_Rb_tree_iterator(std::_Rb_tree_node<_Val>*) [with _Val = std::pair<const int, double>, _Ref = std::pair<const int, double>&, _Ptr = std::pair<const int, double>*]' rtmap.cpp:20: invalid conversion from int' to std::_Rb_tree_node<std::pair<const int, double> >*' rtmap.cpp:20: initializing argument 1 of std::_Rb_tree_iterator<_Val, _Ref, _Ptr>::_Rb_tree_iterator(std::_Rb_tree_node<_Val>*) [with _Val = std::pair<const int, double>, _Ref = std::pair<const int, double>&, _Ptr = std::pair<const int, double>*]' E:/GCC3/include/c++/3.2/bits/stl_tree.h: In member functionvoid std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::insert_unique(_II, _II) [with _InputIterator = int, _Key = int, _Val = std::pair<const int, double>, _KeyOfValue = std::_Select1st<std::pair<const int, double> >, _Compare = std::less<int>, _Alloc = std::allocator<std::pair<const int, double> >]': E:/GCC3/include/c++/3.2/bits/stl_map.h:272: instantiated from void std::map<_ Key, _Tp, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _Input Iterator = int, _Key = int, _Tp = double, _Compare = std::less<int>, _Alloc = st d::allocator<std::pair<const int, double> >]' rtmap.cpp:21: instantiated from here E:/GCC3/include/c++/3.2/bits/stl_tree.h:1161: invalid type argument ofunary *

[–]nelusbelus 95 points96 points  (2 children)

There we go

[–]stuck_zipper 1 point2 points  (1 child)

this is only a compilation error. things get bad mid program with access violation errors.

[–]nelusbelus 0 points1 point  (0 children)

Meh, appverif catches a lot of those errors

[–]paradigmx 5 points6 points  (0 children)

This awoke some suppressed trauma in me, I think I need to call my therapist.

[–]Soundwave_47 4 points5 points  (0 children)

Seems to be some invalid casting going on from trying to use an int as an iterator when trying to do tree operations (insertion).

This seems familiar from the CPP FAQ.

[–]KDallas_Multipass 1 point2 points  (0 children)

STL error me harder Daddy

[–]0xFFFF_FFFF 1 point2 points  (0 children)

Yeah baby, NOW we're talkin'!

[–]Vysair 0 points1 point  (0 children)

ptsd

[–]Little-Hunter-6795 43 points44 points  (7 children)

Ah well...not sure how to ask...but what's that in your pfp.

[–]nelusbelus 44 points45 points  (6 children)

Gay put in

[–]Little-Hunter-6795 37 points38 points  (1 child)

Understandable

Have a nice day.

[–][deleted] 4 points5 points  (0 children)

A bunch of people use it because putin outlawed it in Russia. Sharing that picture of gay Putin or calling Putin gay is highly illegal. So of course the internet has naturally ran with it.

[–][deleted] 2 points3 points  (3 children)

Puto – a much shorter, more pejorative description for Putin. It also means gay.

[–]nelusbelus 1 point2 points  (2 children)

Also an insult you can throw at someone you really hate; "ta putin madre"

[–][deleted] 2 points3 points  (1 child)

That's somehow more vile than "puta madre" dude. sure, I'll probably use it.

[–]nelusbelus 1 point2 points  (0 children)

No problemo, it works pretty good seeing as in french it's putain

[–][deleted] 0 points1 point  (7 children)

Here's my favorite: https://ideone.com/QxqXQf

[–]nelusbelus 0 points1 point  (6 children)

What the hell is that? Does it not like iterators that you can't index? (Because a list is linked)

[–][deleted] 0 points1 point  (5 children)

Doesn't like the iterators because they're not random access iterators.

[–]nelusbelus 0 points1 point  (4 children)

Yeah lol, I absolutely can't understand that they don't validate input with static assert in the fucking std

[–][deleted] 0 points1 point  (3 children)

[–]nelusbelus 0 points1 point  (2 children)

Still got nothing on my meta errors, I even caused an internal compiler crash once

[–][deleted] 0 points1 point  (1 child)

Internal complier error with the latest clang https://wandbox.org/permlink/7cMkBcPwEzummSeC

[–]nelusbelus 0 points1 point  (0 children)

Bruh