Main.cc: In function ‘int main()’:
Main.cc:15:16: error: ‘strcmp’ was not declared in this scope
if(strcmp(a[j].name,b)==0){c=j;break}
^~~~~~
Main.cc:15:16: note: suggested alternative: ‘strtoq’
if(strcmp(a[j].name,b)==0){c=j;break}
^~~~~~
strtoq
Main.cc:15:49: error: expected ‘;’ before ‘}’ token
if(strcmp(a[j].name,b)==0){c=j;break}
^
Main.cc:19:18: error: ‘struct present’ has no member named ‘n’
a[c].n-=avr*x;
^
Main.cc:23:21: error: ‘k’ was not declared in this scope
for(k=0;k