fork download
  1. template<typename T>
  2. void foo( T x)
  3. {
  4. some illegal text
  5. }
  6.  
  7. int main()
  8. {
  9. return 0;
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘void foo(T)’:
prog.cpp:4: error: ‘some’ was not declared in this scope
prog.cpp:4: error: expected `;' before ‘illegal’
stdout
Standard output is empty