collecting.cpp:9:2: error: 'i64' does not name a type
i64 sum(int n)
^
collecting.cpp:22:18: error: 'i64' has not been declared
void add(int n, i64 num)
^
collecting.cpp:32:2: error: 'vector' does not name a type
vector<i64> data;
^
collecting.cpp: In constructor 'FenwickTree::FenwickTree(int)':
collecting.cpp:6:3: error: 'data' was not declared in this scope
data.resize(k);
^
collecting.cpp: In member function 'void FenwickTree::add(int, int)':
collecting.cpp:24:14: error: 'data' was not declared in this scope
while (n < data.size())
^