Main.cc: In function 'int main()': Main.cc:14:8: warning: statement has no effect [-Wunused-value] minn==a[i]; ^ Main.cc:20:10: error: expected '}' at end of input return 0; ^