#include <iostream> using namespace std; struct a { static int id; }; template <typename T> int T::id=1; int main() { // your code goes here return 0; }
Standard input is empty
prog.cpp:10:8: error: invalid use of template type parameter ‘T’ int T::id=1; ^
Standard output is empty