{"id":210500,"date":"2014-01-27T18:20:03","date_gmt":"2014-01-27T14:20:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=210500"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=210500","title":{"rendered":"<span class=\"post_title\">\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430 \u043d\u0430 \u0441\u0430\u043c\u044b\u0439 \u0433\u043b\u044e\u0447\u043d\u044b\u0439 \u043a\u043e\u0434 C++<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u044f <a href=\"http:\/\/tgceec.tumblr.com\/post\/74534916370\/results-of-the-grand-c-error-explosion-competition\">\u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u044b \u043f\u043e\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u0438<\/a> \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430 Grand C++ Error Explosion Competition. \u041d\u0430\u0433\u0440\u0430\u0434\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u043b\u0438 \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u0432 \u0434\u0432\u0443\u0445 \u043d\u043e\u043c\u0438\u043d\u0430\u0446\u0438\u044f\u0445. \u0423\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u043f\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043e\u0448\u0438\u0431\u043e\u043a \u043d\u0430 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u044a\u0451\u043c \u043a\u043e\u0434\u0430. \u0412\u0442\u043e\u0440\u0430\u044f \u043d\u043e\u043c\u0438\u043d\u0430\u0446\u0438\u044f \u2014 \u0442\u0432\u043e\u0440\u0447\u0435\u0441\u043a\u0430\u044f, \u0442\u0430\u043c \u0432\u0430\u0436\u043d\u043e \u043d\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438 \u0440\u0430\u0437\u043c\u0435\u0440, \u0430 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0438 \u043a\u0440\u0430\u0441\u043e\u0442\u0430 \u0433\u043b\u044e\u043a\u043e\u0432.<\/p>\n<p>  \u0412 \u0438\u0442\u043e\u0433\u0435, \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u043c \u043f\u043e\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u042d\u0434 \u0425\u044d\u043d\u0432\u0435\u0439 (Ed Hanway), \u043f\u0440\u0438\u0441\u043b\u0430\u0432\u0448\u0438\u0439 \u0442\u0430\u043a\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443.<\/p>\n<pre><code>#include &quot;.\/\/.\/\/.\/\/.\/\/jeh.cpp&quot; #include &quot;jeh.cpp&quot; `<\/code><\/pre>\n<p>  <a name=\"habracut\"><\/a><br \/>  \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0425\u044d\u043d\u0432\u0435\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u043b\u0430 \u0432 \u0448\u0435\u0441\u0442\u044c \u0440\u0430\u0437 \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0430\u0445, \u0447\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043e \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u0430 \u0432 \u044d\u0442\u043e\u0439 \u043d\u043e\u043c\u0438\u043d\u0430\u0446\u0438\u0438.<\/p>\n<p>  \u041f\u043e\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u0435\u043c \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043e\u0448\u0438\u0431\u043e\u043a \u0432 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 <i>Plain<\/i> \u0441\u0442\u0430\u043b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u041a\u0440\u0438\u0441 \u0425\u043e\u043f\u043c\u0430\u043d \u0441 \u0434\u0432\u043e\u0439\u043d\u044b\u043c <i>include<\/i>.<\/p>\n<pre><code>#include &quot;set&gt;.cpp&quot; #include &quot;set&gt;.cpp&quot;<\/code><\/pre>\n<p>  \u0412 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u00ab\u0427\u0438\u0441\u0442\u044b\u0435 \u0440\u0443\u043a\u0438\u00bb \u0431\u044b\u043b\u043e \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u0438 \u0437\u0434\u0435\u0441\u044c \u043f\u043e\u0431\u0435\u0434\u0438\u043b \u041c\u0430\u0440\u043a \u0410\u043b\u0434\u043e\u0440\u0430\u0441\u0438 \u0441 \u0442\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439.<\/p>\n<pre><code>template&lt;class T,class...&gt;class C{C&lt;T*const,T,C&gt;a;C&lt;T,C&gt;b;};C&lt;int&gt;c;<\/code><\/pre>\n<p>  \u0412 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u00ab\u041b\u0443\u0447\u0448\u0430\u044f \u043e\u0431\u043c\u0430\u043d\u043a\u0430\u00bb (Best Cheat) \u043f\u043e\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d \u0443\u0436\u0435 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0432\u0448\u0438\u0439\u0441\u044f \u041a\u0440\u0438\u0441 \u0425\u043e\u043f\u043c\u0430\u043d. \u0416\u044e\u0440\u0438 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u043b\u043e \u00ab\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Perl, \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430, \u043c\u0435\u043d\u0435\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0433\u043e, \u0447\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u044b C++\u00bb.<\/p>\n<pre><code>\/usr\/include; perl -e &quot;@c=\\&quot;x\\&quot;x(2**16); while(1) {print @c}&quot; 1&gt;&2<\/code><\/pre>\n<p>  \u041d\u043e\u043c\u0438\u043d\u0430\u0446\u0438\u044f \u00ab\u0421\u0430\u043c\u044b\u0439 \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434\u00bb.<\/p>\n<pre><code>template&lt;class T&gt;class L{L&lt;T*&gt;operator-&gt;()};L&lt;int&gt;i=i-&gt;<\/code><\/pre>\n<p>  \u0412 \u043d\u043e\u043c\u0438\u043d\u0430\u0446\u0438\u0438 \u00ab\u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u0430\u0432\u0434\u043e\u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0439 \u043a\u043e\u0434\u00bb \u043f\u043e\u0431\u0435\u0434\u0438\u043b\u0430 \u0440\u0430\u0431\u043e\u0442\u0430 \u0412\u0438\u043a\u0442\u043e\u0440\u0430 \u0417\u0432\u0435\u0440\u043e\u0432\u0438\u0447\u0430. \u041f\u043e \u043c\u043d\u0435\u043d\u0438\u044e \u0436\u044e\u0440\u0438, \u043f\u043e\u0434\u043e\u0431\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0430 \u043b\u0438\u0448\u0438\u0442\u044c \u0436\u0435\u043b\u0430\u043d\u0438\u044f \u0436\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0433\u043e, \u043a\u0442\u043e \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u0435\u0439 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f.<\/p>\n<pre><code>#include &lt;map&gt; #include &lt;algorithm&gt; template&lt;class T,class U&gt;void f(T,U u){std::vector&lt;std::vector&lt;T&gt;&gt;v;auto i=end(v);find(i,i,u);find(i,i,&u);U*p,**q,r(),s(U);find(i,i,&p);find(i,i,&q);find(i,i,r);find(i,i,&r);find(i,i,s);find(i,i,&s);}template&lt;class T&gt;void f(T t){f(t,0);f(t,0l);f(t,0u);f(t,0ul);f(t,0ll);f(t,.0);f(t,.0l);f(t,.0f);f(t,' ');f(t,L' ');f(t,u' ');f(t,U' ');f(t,&quot;&quot;);f(t,L&quot;&quot;);}int main(){f(0);f(0l);f(0u);f(0ul);f(0ll);f(.0);f(.0l);f(.0f);f(' ');f(L' ');f(u' ');f(U' ');f(&quot;&quot;);f(L&quot;&quot;);f(u&quot;&quot;);f(U&quot;&quot;);}<\/code><\/pre>\n<p>  \u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u043f\u0440\u0438\u0437 \u0432 \u043d\u043e\u043c\u0438\u043d\u0430\u0446\u0438\u0438 \u00ab\u0427\u0438\u0441\u0442\u0435\u0439\u0448\u0438\u0435 \u0440\u0443\u043a\u0438\u00bb \u043f\u0440\u0438\u0441\u0443\u0436\u0434\u0451\u043d \u0414\u0436\u043e\u043d\u0443 \u0420\u0435\u0433\u0435\u0440\u0443 \u0441 \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0438.<\/p>\n<pre><code>struct x struct z&lt;x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(x(y,x(y&gt;&lt;y*,x(y*w&gt;v&lt;y*,w,x{}<\/code><\/pre>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/210500\/\"> http:\/\/habrahabr.ru\/post\/210500\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u044f <a href=\"http:\/\/tgceec.tumblr.com\/post\/74534916370\/results-of-the-grand-c-error-explosion-competition\">\u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u044b \u043f\u043e\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u0438<\/a> \u043a\u043e\u043d\u043a\u0443\u0440\u0441\u0430 Grand C++ Error Explosion Competition. \u041d\u0430\u0433\u0440\u0430\u0434\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u043b\u0438 \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u0432 \u0434\u0432\u0443\u0445 \u043d\u043e\u043c\u0438\u043d\u0430\u0446\u0438\u044f\u0445. \u0423\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u043f\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043e\u0448\u0438\u0431\u043e\u043a \u043d\u0430 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u044a\u0451\u043c \u043a\u043e\u0434\u0430. \u0412\u0442\u043e\u0440\u0430\u044f \u043d\u043e\u043c\u0438\u043d\u0430\u0446\u0438\u044f \u2014 \u0442\u0432\u043e\u0440\u0447\u0435\u0441\u043a\u0430\u044f, \u0442\u0430\u043c \u0432\u0430\u0436\u043d\u043e \u043d\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438 \u0440\u0430\u0437\u043c\u0435\u0440, \u0430 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0438 \u043a\u0440\u0430\u0441\u043e\u0442\u0430 \u0433\u043b\u044e\u043a\u043e\u0432.<\/p>\n<p>  \u0412 \u0438\u0442\u043e\u0433\u0435, \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u043c \u043f\u043e\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u042d\u0434 \u0425\u044d\u043d\u0432\u0435\u0439 (Ed Hanway), \u043f\u0440\u0438\u0441\u043b\u0430\u0432\u0448\u0438\u0439 \u0442\u0430\u043a\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443.<\/p>\n<pre><code>#include &quot;.\/\/.\/\/.\/\/.\/\/jeh.cpp&quot; #include &quot;jeh.cpp&quot; `<\/code><\/pre>\n<p>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-210500","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/210500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=210500"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/210500\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=210500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=210500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=210500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}