hindeks.cpp:21:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main()
^
hindeks.cpp: In function 'void free()':
hindeks.cpp:17:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("A.in", "r", stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~
hindeks.cpp:18:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("A.out", "w", stdout);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~