Run id: 81192

Main.cc:3:11: error: '::main' must return 'int'
 void main()
           ^
Main.cc: In function 'int main()':
Main.cc:7:14: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'char*' [-Wformat=]
 scanf("%d",&c);
              ^
Main.cc:7:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&c);
               ^
Main.cc:9:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&a[i]);
                  ^