Main.cpp: In function 'void giai()':
Main.cpp:42:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wformat=]
42 | printf("%d ",pont.size());
| ~^ ~~~~~~~~~~~
| | |
| int std::vector<int>::size_type {aka long unsigned int}
| %ld
Main.cpp:43:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
43 | for(auto&x:pont) printf("%d ",x); printf("\n");
| ^~~
Main.cpp:43:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
43 | for(auto&x:pont) printf("%d ",x); printf("\n");
| ^~~~~~
Main.cpp:16:13: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | int n;scanf("%d",&n);
| ~~~~~^~~~~~~~~
Main.cpp:18:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | scanf("%d",&a[i]);
| ~~~~~^~~~~~~~~~~~
Main.cpp: In function 'int32_t main()':
Main.cpp:48:16: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
48 | int test;scanf("%d",&test);
| ~~~~~^~~~~~~~~~~~