fork download
  1. class\s+([^\s:]*)\s*:\s*(?:virtual)?\s+(?:public\s+|private\s+|protected\s+)?([^\s,]*)(?:\s*,\s*(?:virtual)?\s+(?:public\s+|private\s+|protected\s+)?([^\s,]*))*
  2.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:1: error: stray '\' in program
 class\s+([^\s:]*)\s*:\s*(?:virtual)?\s+(?:public\s+|private\s+|protected\s+)?([^\s,]*)(?:\s*,\s*(?:virtual)?\s+(?:public\s+|private\s+|protected\s+)?([^\s,]*))*
 ^
prog.cpp:1:1: error: stray '\' in program
prog.cpp:1:1: error: stray '\' in program
prog.cpp:1:1: error: stray '\' in program
prog.cpp:1:1: error: stray '\' in program
prog.cpp:1:1: error: stray '\' in program
prog.cpp:1:1: error: stray '\' in program
prog.cpp:1:1: error: stray '\' in program
prog.cpp:1:1: error: stray '\' in program
prog.cpp:1:1: error: stray '\' in program
prog.cpp:1:1: error: stray '\' in program
prog.cpp:1:1: error: stray '\' in program
prog.cpp:1:1: error: stray '\' in program
prog.cpp:1:1: error: stray '\' in program
prog.cpp:1:1: error: stray '\' in program
prog.cpp:1:1: error: stray '\' in program
prog.cpp:1:8: error: expected unqualified-id before '+' token
 class\s+([^\s:]*)\s*:\s*(?:virtual)?\s+(?:public\s+|private\s+|protected\s+)?([^\s,]*)(?:\s*,\s*(?:virtual)?\s+(?:public\s+|private\s+|protected\s+)?([^\s,]*))*
        ^
stdout
Standard output is empty