Main.cc: In function ‘int f(int)’:
Main.cc:8:30: warning: pointer to a function used in arithmetic [-Wpointer-arith]
else if(k%2==1) return f[k-1]*2011;
^
cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith]
Main.cc:8:31: error: invalid operands of types ‘int(int)’ and ‘int’ to binary ‘operator*’
else if(k%2==1) return f[k-1]*2011;
~~~~~~^~~~~
Main.cc: In function ‘int main()’:
Main.cc:20:5: error: ‘strlrn’ was not declared in this scope
n=strlrn(a);
^~~~~~
Main.cc:20:5: note: suggested alternative: ‘strlen’
n=strlrn(a);
^~~~~~
strlen