3 ms·
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
by rwmj 7y ago
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.
- joeraut 7y agoYep, I got the same error. The version here [0] works fine. [0] https://fabiensanglard.net/postcard_pathtracer/ https://fabiensanglard.net/postcard_pathtracer/
- a_e_k 7y ago(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 http://www.cs.utah.edu/~aek/code/card.cpp