school.cpp:23:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
23 | main()
| ^~~~
school.cpp: In function 'int main()':
school.cpp:29:11: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
29 | scanf("%d%d", &a[i].fr, &a[i].sc);
| ~^
| |
| int*
| %lld
school.cpp:29:13: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
29 | scanf("%d%d", &a[i].fr, &a[i].sc);
| ~^
| |
| int*
| %lld
school.cpp:29:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | scanf("%d%d", &a[i].fr, &a[i].sc);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~