fib.cpp: In function 'int main()':
fib.cpp:23:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
23 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
fib.cpp:26:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
26 | scanf("%d", &aux);
| ~~~~~^~~~~~~~~~~~
fib.cpp:15:8: warning: iteration 17 invokes undefined behavior [-Waggressive-loop-optimizations]
15 | f[i] = f[i - 1] + f[i - 2];
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
fib.cpp:14:19: note: within this loop
14 | for(int i = 3; i <= 20; i++){
| ~~^~~~~