LINUX.ORG.RU

История изменений

Исправление lenin386, (текущая версия) :

Мы остановились, добившись успешной компиляции следующего:

for(;P(«\n»),R-;P(«|»))for(e=C;e-;P(«_»+(*u++/8)%2 ))P(«| »+(*u/4)%2);

Очень интересно, как им это удалось. Мне - нет.

lenin@GAME:~$ cc a.c
a.c: In function ‘main’:
a.c:5:6: warning: implicit declaration of function ‘P’ [-Wimplicit-function-declaration]
 for(;P("\n"),R-;P("|"))for(e=C;e-;P("_"+(*u++/8)%2 ))P("| "+(*u/4)%2);
      ^
a.c:5:14: error: ‘R’ undeclared (first use in this function)
 for(;P("\n"),R-;P("|"))for(e=C;e-;P("_"+(*u++/8)%2 ))P("| "+(*u/4)%2);
              ^
a.c:5:14: note: each undeclared identifier is reported only once for each function it appears in
a.c:5:16: error: expected expression before ‘;’ token
 for(;P("\n"),R-;P("|"))for(e=C;e-;P("_"+(*u++/8)%2 ))P("| "+(*u/4)%2);
                ^
a.c:5:28: error: ‘e’ undeclared (first use in this function)
 for(;P("\n"),R-;P("|"))for(e=C;e-;P("_"+(*u++/8)%2 ))P("| "+(*u/4)%2);
                            ^
a.c:5:30: error: ‘C’ undeclared (first use in this function)
 for(;P("\n"),R-;P("|"))for(e=C;e-;P("_"+(*u++/8)%2 ))P("| "+(*u/4)%2);
                              ^
a.c:5:43: error: ‘u’ undeclared (first use in this function)
 for(;P("\n"),R-;P("|"))for(e=C;e-;P("_"+(*u++/8)%2 ))P("| "+(*u/4)%2);

Исходная версия lenin386, :

Мы остановились, добившись успешной компиляции следующего:

for(;P(«\n»),R-;P(«|»))for(e=C;e-;P(«_»+(*u++/8)%2 ))P(«| »+(*u/4)%2);

Очень интересно, как им это удалось. Мне - нет.

lenin@GAME:~$ cc a.c
a.c: In function ‘main’:
a.c:5:6: warning: implicit declaration of function ‘P’ [-Wimplicit-function-declaration]
 for(;P("\n"),R-;P("|"))for(e=C;e-;P("_"+(*u++/8)%2 ))P("| "+(*u/4)%2);
      ^
a.c:5:14: error: ‘R’ undeclared (first use in this function)
 for(;P("\n"),R-;P("|"))for(e=C;e-;P("_"+(*u++/8)%2 ))P("| "+(*u/4)%2);
              ^
a.c:5:14: note: each undeclared identifier is reported only once for each function it appears in
a.c:5:16: error: expected expression before ‘;’ token
 for(;P("\n"),R-;P("|"))for(e=C;e-;P("_"+(*u++/8)%2 ))P("| "+(*u/4)%2);
                ^
a.c:5:28: error: ‘e’ undeclared (first use in this function)
 for(;P("\n"),R-;P("|"))for(e=C;e-;P("_"+(*u++/8)%2 ))P("| "+(*u/4)%2);
                            ^
a.c:5:30: error: ‘C’ undeclared (first use in this function)
 for(;P("\n"),R-;P("|"))for(e=C;e-;P("_"+(*u++/8)%2 ))P("| "+(*u/4)%2);
                              ^
a.c:5:43: error: ‘u’ undeclared (first use in this function)
 for(;P("\n"),R-;P("|"))for(e=C;e-;P("_"+(*u++/8)%2 ))P("| "+(*u/4)%2);