towers.cpp:7:10: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
7 | int a[1e5+10];
| ~~~^~~
towers.cpp:7:10: error: could not convert '(1.0e+5 + (double)10)' from 'double' to 'long unsigned int'
towers.cpp:7:10: error: size of array 'a' has non-integral type 'double'
towers.cpp: In function 'int max_towers(int, int, int)':
towers.cpp:17:25: error: request for member 'size' in 'a', which is of non-class type 'int [1]'
17 | vector<bool> used(a.size(), false);
| ^~~~
towers.cpp:21:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int i = 0; i < b.size(); i++) {
| ~~^~~~~~~~~~