prepare (1/3):
finished
make (2/3):
g++ -g -Wall -O2 -o main.o -c main.cpp
main.cpp: In function 'int main()':
main.cpp:125:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &type, &n, &ord);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:130:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &(a[i]));
~~~~~^~~~~~~~~~~~~~~
main.cpp:141:50: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
cout << "The order-" << ord <<" item is " << ans << endl;
^~~
g++ -g -Wall -O2 -o main main.o
finished
clean (3/3):
finished
all task finished, build successfully