fib.cpp: In function 'int main()':
fib.cpp:24:5: error: 'vec' was not declared in this scope
24 | vec<int> a(n);
| ^~~
fib.cpp:24:9: error: expected primary-expression before 'int'
24 | vec<int> a(n);
| ^~~
fib.cpp:26:37: error: 'a' was not declared in this scope
26 | for(int i = 0; i<n; i++) cin >> a[i];
| ^
fib.cpp:28:9: error: expected primary-expression before 'int'
28 | vec<int> p(n);
| ^~~
fib.cpp:31:9: error: 'p' was not declared in this scope
31 | p[i] = fib(a[i]) + i > 0 ? p[i-1] : 0;
| ^
fib.cpp:31:20: error: 'a' was not declared in this scope
31 | p[i] = fib(a[i]) + i > 0 ? p[i-1] : 0;
| ^
fib.cpp:36:20: error: 'p' was not declared in this scope
36 | cout << go(p[i]) << ' ';
| ^