foo.cc: In function 'int mian()':
foo.cc:9:12: warning: unknown conversion type character '-' in format [-Wformat=]
9 | scanf("%-4d",i);
| ^
foo.cc:9:10: warning: too many arguments for format [-Wformat-extra-args]
9 | scanf("%-4d",i);
| ^~~~~~
foo.cc:9:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
9 | scanf("%-4d",i);
| ~~~~~^~~~~~~~~~
foo.cc:10:5: warning: 't' may be used uninitialized in this function [-Wmaybe-uninitialized]
10 | t++;
| ~^~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务