fork download
  1. import std.algorithm;
  2. import std.stdio;
  3.  
  4. enum INPUT = "cqrb lryqna rb fjh, fjh qjamna cqjw axc cqracnnw. qnan,
  5. hxd wnena twxf qxf oja cx bqroc! xq kh cqn fjh, cqn jwbfna rb
  6. mnjmvjwblqnbc.";
  7.  
  8. void main() {
  9. foreach ( offset; 0..25 ) {
  10. writeln( map!( ( c ){
  11. return offset;
  12. } )( INPUT ) );
  13. }
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/lib/dmd2/src/phobos/std/algorithm.d(127): Error: forward reference to inferred return type of function call __dgliteral1('\U0000ffff')
prog.d(118): Error: template instance prog.main.Map!(__dgliteral1,string) error instantiating
prog.d(12):        instantiated from here: map!(string)
prog.d(12): Error: template instance prog.main.map!(__dgliteral1).map!(string) error instantiating
stdout
Standard output is empty