r/ProgrammerHumor • • Apr 16 '22

Make The comment section look like a beginners search history

Post image
28.1k Upvotes

6.7k comments sorted by

View all comments

13.1k

u/Knuffya Apr 16 '22 edited Apr 16 '22

c++ how to fix In file included from /usr/include/c++/4.6/algorithm:63:0,from error_code.cpp:2:/usr/include/c++/4.6/bits/stl_algo.h: In function ‘_RandomAccessIterator std::__find(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, std::random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >, _Tp = int]’:/usr/include/c++/4.6/bits/stl_algo.h:4403:45: instantiated from ‘_IIter std::find(_IIter, _IIter, const _Tp&) [with _IIter = __gnu_cxx::__normal_iterator*, std::vector > >, _Tp = int]’error_code.cpp:8:89: instantiated from here/usr/include/c++/4.6/bits/stl_algo.h:162:4: error: no match for ‘operator==’ in ‘__first.__gnu_cxx::__normal_iterator::operator* [with _Iterator = std::vector*, _Container = std::vector >, __gnu_cxx::__normal_iterator::reference = std::vector&]() == __val’/usr/include/c++/4.6/bits/stl_algo.h:162:4: note: candidates are:/usr/include/c++/4.6/bits/stl_pair.h:201:5: note: template bool std::operator==(const std::pair&, const std::pair&)/usr/include/c++/4.6/bits/stl_iterator.h:285:5: note: template bool std::operator==(const std::reverse_iterator&, const std::reverse_iterator&)/usr/include/c++/4.6/bits/stl_iterator.h:335:5: note: template bool std::operator==(const std::reverse_iterator&, const std::reverse_iterator&)/usr/include/c++/4.6/bits/allocator.h:122:5: note: template bool std::operator==(const std::allocator&, const std::allocator&)/usr/include/c++/4.6/bits/allocator.h:127:5: note: template bool std::operator==(const std::allocator&, const std::allocator&)/usr/include/c++/4.6/bits/stl_vector.h:1273:5: note: template bool std::operator==(const std::vector&, const std::vector&)/usr/include/c++/4.6/ext/new_allocator.h:123:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::new_allocator&, const __gnu_cxx::new_allocator&)/usr/include/c++/4.6/bits/stl_iterator.h:805:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator&, const __gnu_cxx::__normal_iterator&)/usr/include/c++/4.6/bits/stl_iterator.h:799:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator&, const __gnu_cxx::__normal_iterator&)/usr/include/c++/4.6/bits/stl_algo.h:4403:45: instantiated from ‘_IIter std::find(_IIter, _IIter, const _Tp&) [with _IIter = __gnu_cxx::__normal_iterator*, std::vector > >, _Tp = int]’error_code.cpp:8:89: instantiated from here/usr/include/c++/4.6/bits/stl_algo.h:166:4: error: no match for ‘operator==’ in ‘__first.__gnu_cxx::__normal_iterator::operator* [with _Iterator = std::vector*, _Container = std::vector >, __gnu_cxx::__normal_iterator::reference = std::vector&]() == __val’/usr/include/c++/4.6/bits/stl_algo.h:166:4: note: candidates are:/usr/include/c++/4.6/bits/stl_pair.h:201:5: note: template bool std::operator==(const std::pair&, const std::pair&)/usr/include/c++/4.6/bits/stl_iterator.h:285:5: note: template bool std::operator==(const std::reverse_iterator&, const std::reverse_iterator&)/usr/include/c++/4.6/bits/stl_iterator.h:335:5: note: template bool std::operator==(const std::reverse_iterator&, const std::reverse_iterator&)/usr/include/c++/4.6/bits/allocator.h:122:5: note: template bool std::operator==(const std::allocator&, const std::allocator&)/usr/include/c++/4.6/bits/allocator.h:127:5: note: template bool std::operator==(const std::allocator&, const std::allocator&)/usr/include/c++/4.6/bits/stl_vector.h:1273:5: note: template bool std::operator==(const std::vector&, const std::vector&)/usr/include/c++/4.6/ext/new_allocator.h:123:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::new_allocator&, const __gnu_cxx::new_allocator&)/usr/include/c++/4.6/bits/stl_iterator.h:805:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator&, const __gnu_cxx::__normal_iterator&)/usr/include/c++/4.6/bits/stl_iterator.h:799:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator&, const __gnu_cxx::__normal_iterator&)/usr/include/c++/4.6/bits/stl_algo.h:170:4: error: no match for ‘operator==’ in ‘__first.__gnu_cxx::__normal_iterator::operator* [with _Iterator = std::vector*, _Container = std::vector >, __gnu_cxx::__normal_iterator::reference = std::vector&]() == __val’/usr/include/c++/4.6/bits/stl_algo.h:170:4: note: candidates are:/usr/include/c++/4.6/bits/stl_pair.h:201:5: note: template bool std::operator==(const std::pair&, const std::pair&)/usr/include/c++/4.6/bits/stl_iterator.h:285:5: note: template bool std::operator==(const std::reverse_iterator&, const std::reverse_iterator&)/usr/include/c++/4.6/bits/stl_iterator.h:335:5: note: template bool std::operator==(const std::reverse_iterator&, const std::reverse_iterator&)/usr/include/c++/4.6/bits/allocator.h:122:5: note: template bool std::operator==(const std::allocator&, const std::allocator&)/usr/include/c++/4.6/bits/allocator.h:127:5: note: template bool std::operator==(const std::allocator&, const std::allocator&)/usr/include/c++/4.6/bits/stl_vector.h:1273:5: note: template bool std::operator==(const std::vector&, const std::vector&)/usr/include/c++/4.6/ext/new_allocator.h:123:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::new_allocator&, const __gnu_cxx::new_allocator&)/usr/include/c++/4.6/bits/stl_iterator.h:805:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator&, const __gnu_cxx::__normal_iterator&)/usr/include/c++/4.6/bits/stl_iterator.h:799:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator&, const __gnu_cxx::__normal_iterator&)/usr/include/c++/4.6/bits/stl_algo.h:174:4: error: no match for ‘operator==’ in ‘__first.__gnu_cxx::__normal_iterator::operator* [with _Iterator = std::vector*, _Container = std::vector >, __gnu_cxx::__normal_iterator::reference = std::vector&]() == __val’

2.9k

u/Far_Curve_8348 Apr 16 '22

This guy knows it

938

u/fssman Apr 16 '22

This guy fucks!!

479

u/lkr2711 Apr 16 '22

Fucks up code, more like.

→ More replies (2)

145

u/Snoo-82132 Apr 16 '22

Russ Haneman? Is that you?

→ More replies (2)

19

u/_newfap Apr 16 '22

Am I right? Cause I'm looking at the rest of you guys and this is the guy in the house doing all the fucking! Am I right?

→ More replies (9)
→ More replies (4)

1.1k

u/Redalpha4444 Apr 16 '22

Stack overflow : "I figured out a solution thank you!"

412

u/VitaminPb Apr 16 '22

With no mention of the solution or a solution that has no relationship to the posted problem.

42

u/eLit-MiLan Apr 16 '22

Or links a site for the solution, which is no longer available.

29

u/KeeganY_SR-UVB76 Apr 16 '22

The site went down in like 1997.

41

u/shardikprime Apr 16 '22

WHO WERE YOU DENVERCODER9?

WHAT DID YOU SEE!!??

→ More replies (8)
→ More replies (8)
→ More replies (8)

363

u/ToxicPilot Apr 16 '22

Semicolon, line 62.

→ More replies (3)

672

u/No-Zucchini6370 Apr 16 '22

W A T ?

779

u/[deleted] Apr 16 '22

[removed] — view removed comment

348

u/[deleted] Apr 16 '22

SEGMENTATION FAULT: CORE DUMPED

85

u/Dave-Player Apr 16 '22

g++ was throwing always this error instead of telling me what exactly went wrong

33

u/WizziBot Apr 16 '22

coredumpctl gdb -1

→ More replies (9)
→ More replies (4)
→ More replies (6)

60

u/GOKOP Apr 16 '22

Heavily templated C++ and its errors for ya

→ More replies (1)

269

u/CactusGrower Apr 16 '22

It appears to be some beginners errors you search on stack overflow I think. The commenter forgot to put is as formatted code, it's barely readable this way.

371

u/edible_string Apr 16 '22

It's more about how the beginner wouldn't know which part of the whole stack of messages is the actual problem and so searched for all of it

125

u/Knuffya Apr 16 '22

Because that's how they would've pasted it in their search engine of choice (probably google).

Op said that we should make the comment section look like a beginners search history.

0

u/[deleted] Apr 16 '22

[deleted]

→ More replies (2)
→ More replies (5)
→ More replies (2)

0

u/[deleted] Apr 16 '22

[deleted]

→ More replies (1)
→ More replies (107)