0_0_39009707_102.cpp:1:1: error: 'll' does not name a type
1 | ll t,n,m;
| ^~
0_0_39009707_102.cpp:2:1: error: 'string' does not name a type
2 | string s;
| ^~~~~~
0_0_39009707_102.cpp:4:9: error: 'll' does not name a type
4 | ll w,s;
| ^~
0_0_39009707_102.cpp:5:4: error: 'maxn' was not declared in this scope
5 | }a[maxn];
| ^~~~
0_0_39009707_102.cpp: In function 'bool cmp(node, node)':
0_0_39009707_102.cpp:7:18: error: 'struct node' has no member named 'w'
7 | return x.w+x.s<y.w+y.s;
| ^
0_0_39009707_102.cpp:7:22: error: 'struct node' has no member named 's'
7 | return x.w+x.s<y.w+y.s;
| ^
0_0_39009707_102.cpp:7:26: error: 'struct node' has no member named 'w'
7 | return x.w+x.s<y.w+y.s;
| ^
0_0_39009707_102.cpp:7:30: error: 'struct node' has no member named 's'
7 | return x.w+x.s<y.w+y.s;
| ^
0_0_39009707_102.cpp: In function 'int main()':
0_0_39009707_102.cpp:11:30: error: 'n' was not declared in this scope
11 | while(~scanf("%lld",&n)){
| ^
0_0_39009707_102.cpp:11:16: error: 'scanf' was not declared in this scope
11 | while(~scanf("%lld",&n)){
| ^~~~~
0_0_39009707_102.cpp:13:44: error: 'a' was not declared in this scope
13 | scanf("%lld %lld",&a[i].w,&a[i].s);
| ^
0_0_39009707_102.cpp:16:22: error: 'a' was not declared in this scope
16 | sort(a,a+n,cmp);
| ^
0_0_39009707_102.cpp:16:17: error: 'sort' was not declared in this scope; did you mean 'short'?
16 | sort(a,a+n,cmp);
| ^~~~
| short
0_0_39009707_102.cpp:17:17: error: 'll' was not declared in this scope
17 | ll sum=0,ans=0;
| ^~
0_0_39009707_102.cpp:19:25: error: 'ans' was not declared in this scope
19 | ans=max(ans,sum-a[i].s);
| ^~~
0_0_39009707_102.cpp:19:37: error: 'sum' was not declared in this scope
19 | ans=max(ans,sum-a[i].s);
| ^~~
0_0_39009707_102.cpp:19:29: error: 'max' was not declared in this scope
19 | ans=max(ans,sum-a[i].s);
| ^~~
0_0_39009707_102.cpp:22:33: error: 'ans' was not declared in this scope
22 | printf("%lld\n",ans);
| ^~~
0_0_39009707_102.cpp:22:17: error: 'printf' was not declared in this scope
22 | printf("%lld\n",ans);
| ^~~~~~
0_0_39009707_102.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | ll t,n,m;
|