foo.cc: In function 'int main()':
foo.cc:8:35: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
8 | cout<<a[n][0]<<' '<<a[n][2];
| ^
foo.cc:4:5: note: while referencing 'a'
4 | int a[41][2]={{0,0},{0,1},{1,2},{2,4},{4,7},{7,12},{12,20},{20,33},{33,54},{54,88},{88,143},{143,232},{232,376},{376,609},{609,986},{986,1596},{1596,2583},{2583,4180},{4180,6764},{6764,10945},{10945,17710},{17710,28656},{28656,46367},{46367,75024},{75024,121392},{121392,196417},{196417,317810},{317810,514228},{514228,832039},{832039,1346268},{1346268,2178308},{2178308,3524577},{3524577,5702886},{5702886,9227464},{9227464,14930351},{14930351,24157816},{24157816,39088168},{39088168,63245985},{63245985,102334154},{102334154,165580140},{165580140,267914295}};
| ^
[Hydro](https://hydro.ac)提供评测服务