tea.cpp: In function 'int main()':
tea.cpp:41:30: error: 'struct FENWICK' has no member named 'upd'
41 | for(auto j:vc[i])fen.upd(j, mp(dp[j], j));
| ^~~
tea.cpp:56:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wformat=]
56 | printf("%d ", i.size());
| ~^ ~~~~~~~~
| | |
| int std::vector<int>::size_type {aka long unsigned int}
| %ld
tea.cpp:34:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
34 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
tea.cpp:36:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
36 | scanf("%d", &arr[i].F);
| ~~~~~^~~~~~~~~~~~~~~~~