fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct a
  5. {
  6. static int id;
  7. };
  8.  
  9. template <typename T>
  10. int T::id=1;
  11.  
  12. int main() {
  13. // your code goes here
  14. return 0;
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:10:8: error: invalid use of template type parameter ‘T’
 int T::id=1;
        ^
stdout
Standard output is empty