toy.cpp: In function 'int main()':
toy.cpp:29:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::set<int>::size_type' {aka 'long unsigned int'} [-Wformat=]
29 | printf("%d\n",mp[n].size());
| ~^ ~~~~~~~~~~~~
| | |
| int std::set<int>::size_type {aka long unsigned int}
| %ld
toy.cpp:25:11: warning: unused variable 'i' [-Wunused-variable]
25 | int n,i,sum;
| ^
toy.cpp:25:13: warning: unused variable 'sum' [-Wunused-variable]
25 | int n,i,sum;
| ^~~
toy.cpp:26:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | scanf("%d",&n);
| ~~~~~^~~~~~~~~