karte.cpp: In function 'int main()':
karte.cpp:16:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("a.gir","r",stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~
karte.cpp:17:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("a.cik","w",stdout);
~~~~~~~^~~~~~~~~~~~~~~~~~~~
karte.cpp:19:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&k);
~~~~~^~~~~~~~~~~~~~~
karte.cpp:21:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&dizi[i]);
~~~~~^~~~~~~~~~~~~~~