fork(1) download
  1. auto b = fmt.c_str() + std::distance(fmt.begin(), fmt_it);
  2. auto e = &end;
  3. std::strtol(b, e, 10);
  4.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:10: error: ‘fmt’ was not declared in this scope
 auto b = fmt.c_str() + std::distance(fmt.begin(), fmt_it);
          ^
prog.cpp:1:24: error: ‘distance’ is not a member of ‘std’
 auto b = fmt.c_str() + std::distance(fmt.begin(), fmt_it);
                        ^
prog.cpp:1:38: error: ‘fmt’ was not declared in this scope
 auto b = fmt.c_str() + std::distance(fmt.begin(), fmt_it);
                                      ^
prog.cpp:1:51: error: ‘fmt_it’ was not declared in this scope
 auto b = fmt.c_str() + std::distance(fmt.begin(), fmt_it);
                                                   ^
prog.cpp:2:11: error: ‘end’ was not declared in this scope
 auto e = &end;
           ^
prog.cpp:3:12: error: expected constructor, destructor, or type conversion before ‘(’ token
 std::strtol(b, e, 10);
            ^
stdout
Standard output is empty