#include using namespace std; struct box {int wm=0,bm=0,eff=0;}; void citire (int &n, int &m, box s[]) { cin>>n>>m; for (int i=0;i>s[i].wm>>s[i].bm; s[i].eff=s[i].bm-s[i].wm; } } void sortare (box s[],int n) { int ordonat=0,i; box aux; while (ordonat==0) { ordonat=1; for (i=0;i