Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is there a mistake in the original code on the right hand side? I get:

  card.cpp:16:2: error: ‘g’ was not declared in this scope
     16 | <g;p)t=p,n=v(0,0,1),m=1;for(i k=19;k--;)
        |  ^
Edit: Yes there is. The ‘<g;’ seems like it should have been the single character ‘<’, perhaps a corrupted HTML escape.


(Original author of this code[0] here.) Yes, that looks like a corrupted copy. The line should be:

    <p)t=p,n=v(0,0,1),m=1;for(i k=19;k--;)
[0] http://www.cs.utah.edu/~aek/code/card.cpp


Yep, I got the same error. The version here [0] works fine.

[0] https://fabiensanglard.net/postcard_pathtracer/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: