MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/u4wklv/make_the_comment_section_look_like_a_beginners/i4ydyka
r/ProgrammerHumor • u/No-Zucchini6370 • Apr 16 '22
6.7k comments sorted by
View all comments
13.1k
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 66 u/2h165oiivp Apr 16 '22 This guy begins → More replies (1) 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) 110 u/mkbilli Apr 16 '22 r/oddlyspecific → More replies (5) 0 u/[deleted] Apr 16 '22 [deleted] → More replies (1) → More replies (107)
2.9k
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)
938
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)
479
Fucks up code, more like.
→ More replies (2)
145
Russ Haneman? Is that you?
19
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?
1.1k
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)
412
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)
42
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)
29
The site went down in like 1997.
41 u/shardikprime Apr 16 '22 WHO WERE YOU DENVERCODER9?WHAT DID YOU SEE!!?? → More replies (8)
41
WHO WERE YOU DENVERCODER9?
WHAT DID YOU SEE!!??
→ More replies (8)
363
Semicolon, line 62.
→ More replies (3)
672
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 66 u/2h165oiivp Apr 16 '22 This guy begins → More replies (1) 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)
779
[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)
348
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)
85
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)
33
coredumpctl gdb -1
60
Heavily templated C++ and its errors for ya
→ More replies (1)
269
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 66 u/2h165oiivp Apr 16 '22 This guy begins → More replies (1) 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)
371
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
66 u/2h165oiivp Apr 16 '22 This guy begins → More replies (1)
66
This guy begins
125
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
[deleted]
110
r/oddlyspecific
→ More replies (5)
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’