Language: C++

#include<bits/stdc++.h>
using namespace std;
const ll N=2e5+5;
ll n,T,ans,b[N],tot1,tot2;
struct node
{
	ll x,y;
}a[N];
bool mycmp(node x,node y)
{
	return y.x*(x.y+1)<x.x*(y.y+1);
}
ll f[N];
int main()
{
	scanf("%lld%lld",&n,&T);
	for(ll i=1;i<=n;i++)
	{
		ll x,y;
		scanf("%lld%lld",&x,&y);
		if(x==0) b[++tot2]=y+1;
		else a[++tot1]={x,y};
	}
	sort(a+1,a+tot1+1,mycmp);
	sort(b+1,b+tot2+1);
	memset(f,0x3f,sizeof(f));
	f[0]=0;
	for(ll i=1;i<=tot1;i++)
		for(ll j=min(30,i);j>=1;j--)
			f[j]=min(f[j],(f[j-1]+1)*(a[i].x+1)+a[i].y);
	for(ll i=1;i<=tot2;i++) b[i]+=b[i-1];
	for(ll i=0;i<=30;i++)
	{
		ll t=f[i];
		if(t>T) continue;
		ll x=i+upper_bound(b+1,b+tot2+1,T-t)-b-1;
		ans=max(ans,x);
	}
	printf("%lld\n",ans);
	return 0;
}

Compiler output:
a.cc:3:7: error: 'll' does not name a type
    3 | const ll N=2e5+5;
      |       ^~
a.cc:4:1: error: 'll' does not name a type
    4 | ll n,T,ans,b[N],tot1,tot2;
      | ^~
a.cc:7:9: error: 'll' does not name a type
    7 |         ll x,y;
      |         ^~
a.cc:8:4: error: 'N' was not declared in this scope
    8 | }a[N];
      |    ^
a.cc: In function 'bool mycmp(node, node)':
a.cc:11:18: error: 'struct node' has no member named 'x'
   11 |         return y.x*(x.y+1)<x.x*(y.y+1);
      |                  ^
a.cc:11:23: error: 'struct node' has no member named 'y'
   11 |         return y.x*(x.y+1)<x.x*(y.y+1);
      |                       ^
a.cc:11:30: error: 'struct node' has no member named 'x'
   11 |         return y.x*(x.y+1)<x.x*(y.y+1);
      |                              ^
a.cc:11:35: error: 'struct node' has no member named 'y'
   11 |         return y.x*(x.y+1)<x.x*(y.y+1);
      |                                   ^
a.cc: At global scope:
a.cc:13:1: error: 'll' does not name a type
   13 | ll f[N];
      | ^~
a.cc: In function 'int main()':
a.cc:16:27: error: 'n' was not declared in this scope; did you mean 'yn'?
   16 |         scanf("%lld%lld",&n,&T);
      |                           ^
      |                           yn
a.cc:16:30: error: 'T' was not declared in this scope
   16 |         scanf("%lld%lld",&n,&T);
      |                              ^
a.cc:17:13: error: 'll' was not declared in this scope
   17 |         for(ll i=1;i<=n;i++)
      |             ^~
a.cc:17:20: error: 'i' was not declared in this scope
   17 |         for(ll i=1;i<=n;i++)
      |                    ^
a.cc:19:19: error: expected ';' before 'x'
   19 |                 ll x,y;
      |                   ^~
      |                   ;
a.cc:20:35: error: 'x' was not declared in this scope
   20 |                 scanf("%lld%lld",&x,&y);
      |                                   ^
a.cc:20:38: error: 'y' was not declared in this scope; did you mean 'yn'?
   20 |                 scanf("%lld%lld",&x,&y);
      |                                      ^
      |                                      yn
a.cc:21:26: error: 'b' was not declared in this scope
   21 |                 if(x==0) b[++tot2]=y+1;
      |                          ^
a.cc:21:30: error: 'tot2' was not declared in this scope
   21 |                 if(x==0) b[++tot2]=y+1;
      |                              ^~~~
a.cc:22:22: error: 'a' was not declared in this scope
   22 |                 else a[++tot1]={x,y};
      |                      ^
a.cc:22:26: error: 'tot1' was not declared in this scope
   22 |                 else a[++tot1]={x,y};
      |                          ^~~~
a.cc:24:14: error: 'a' was not declared in this scope
   24 |         sort(a+1,a+tot1+1,mycmp);
      |              ^
a.cc:24:20: error: 'tot1' was not declared in this scope
   24 |         sort(a+1,a+tot1+1,mycmp);
      |                    ^~~~
a.cc:25:14: error: 'b' was not declared in this scope
   25 |         sort(b+1,b+tot2+1);
      |              ^
a.cc:25:20: error: 'tot2' was not declared in this scope
   25 |         sort(b+1,b+tot2+1);
      |                    ^~~~
a.cc:26:16: error: 'f' was not declared in this scope
   26 |         memset(f,0x3f,sizeof(f));
      |                ^
a.cc:28:13: error: 'll' was not declared in this scope
   28 |         for(ll i=1;i<=tot1;i++)
      |             ^~
a.cc:28:20: error: 'i' was not declared in this scope
   28 |         for(ll i=1;i<=tot1;i++)
      |                    ^
a.cc:29:23: error: expected ';' before 'j'
   29 |                 for(ll j=min(30,i);j>=1;j--)
      |                       ^~
      |                       ;
a.cc:29:36: error: 'j' was not declared in this scope; did you mean 'jn'?
   29 |                 for(ll j=min(30,i);j>=1;j--)
      |                                    ^
      |                                    jn
a.cc:31:13: error: 'll' was not declared in this scope
   31 |         for(ll i=1;i<=tot2;i++) b[i]+=b[i-1];
      |             ^~
a.cc:31:20: error: 'i' was not declared in this scope
   31 |         for(ll i=1;i<=tot2;i++) b[i]+=b[i-1];
      |                    ^
a.cc:32:13: error: 'll' was not declared in this scope
   32 |         for(ll i=0;i<=30;i++)
      |             ^~
a.cc:32:20: error: 'i' was not declared in this scope
   32 |         for(ll i=0;i<=30;i++)
      |                    ^
a.cc:34:19: error: expected ';' before 't'
   34 |                 ll t=f[i];
      |                   ^~
      |                   ;
a.cc:35:20: error: 't' was not declared in this scope; did you mean 'tm'?
   35 |                 if(t>T) continue;
      |                    ^
      |                    tm
a.cc:36:19: error: expected ';' before 'x'
   36 |                 ll x=i+upper_bound(b+1,b+tot2+1,T-t)-b-1;
      |                   ^~
      |                   ;
a.cc:37:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   37 |                 ans=max(ans,x);
      |                 ^~~
      |                 abs
a.cc:37:29: error: 'x' was not declared in this scope
   37 |                 ans=max(ans,x);
      |                             ^
a.cc:39:25: error: 'ans' was not declared in this scope; did you mean 'abs'?
   39 |         printf("%lld\n",ans);
      |                         ^~~
      |                         abs