akcija.cpp: In function 'int main()':
akcija.cpp:15:9: warning: unused variable 'last_taken' [-Wunused-variable]
int last_taken = -1;
^~~~~~~~~~
akcija.cpp:9:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
akcija.cpp:11:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&ara[i]);
~~~~~^~~~~~~~~~~~~~