F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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;


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-29 20:49:34, Gzip enabled