Runtime Error
/in/foo.cc: In function 'int main()': /in/foo.cc:26:50: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=] scanf("%d%d%d",a[i].time,a[i].food,a[i].high); ^ /in/foo.cc:26:50: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=] /in/foo.cc:26:50: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'int' [-Wformat=]