fork download
  1. for(int i = 0; i < input.size(); i++) {
  2. switch(input[i]) {
  3. case '<':
  4. output.push_back(TokenType::LessThan);
  5. break;
  6. case '>':
  7. output.push_back(TokenType::GreaterThan);
  8. break;
  9. case ' ':
  10. case '\n':
  11. case '\r':
  12. case '\t':
  13. break;
  14. }
  15. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty