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_14916544_25427.cpp:5:1: error: 'usingnamespace' does not name a type
 usingnamespace std;
 ^
0_0_14916544_25427.cpp:7:1: error: 'constint' does not name a type
 constint N =50010;
 ^
0_0_14916544_25427.cpp:9:9: error: 'longlong' does not name a type
 typedef longlong llg;
         ^
0_0_14916544_25427.cpp:11:7: error: 'llg' does not name a type
 const llg inf = llg(1000000)*1000005;
       ^
0_0_14916544_25427.cpp:16:4: error: 'N' was not declared in this scope
 }p[N];
    ^
0_0_14916544_25427.cpp:18:17: error: 'N' was not declared in this scope
 int n, k, queue[N];
                 ^
0_0_14916544_25427.cpp:19:1: error: 'llg' does not name a type
 llg f[N][105];
 ^
0_0_14916544_25427.cpp: In function 'bool cmp(const node&, const node&)':
0_0_14916544_25427.cpp:24:5: error: 'elsereturn' was not declared in this scope
     elsereturn  a.h > b.h;
     ^
0_0_14916544_25427.cpp: At global scope:
0_0_14916544_25427.cpp:27:1: error: 'llg' does not name a type
 llg dy(int k1, int k2, int j)
 ^
0_0_14916544_25427.cpp:32:1: error: 'llg' does not name a type
 llg dx(int k1, int k2)
 ^
0_0_14916544_25427.cpp: In function 'int main()':
0_0_14916544_25427.cpp:40:5: error: 'llg' was not declared in this scope
     llg ans;
     ^
0_0_14916544_25427.cpp:43:48: error: 'p' was not declared in this scope
         for(i =1; i <= n; i++)  scanf("%d%d", &p[i].w, &p[i].h);
                                                ^
0_0_14916544_25427.cpp:44:14: error: 'p' was not declared in this scope
         sort(p+1, p+n+1, cmp);
              ^
0_0_14916544_25427.cpp:44:29: error: 'sort' was not declared in this scope
         sort(p+1, p+n+1, cmp);
                             ^
0_0_14916544_25427.cpp:44:29: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_14916544_25427.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note:   'std::sort'
     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
     ^
0_0_14916544_25427.cpp:59:17: error: 'f' was not declared in this scope
                 f[i][j] =-1;
                 ^
0_0_14916544_25427.cpp:60:9: error: 'f' was not declared in this scope
         f[0][0] =0;
         ^
0_0_14916544_25427.cpp:61:9: error: 'ans' was not declared in this scope
         ans = inf;
         ^
0_0_14916544_25427.cpp:61:15: error: 'inf' was not declared in this scope
         ans = inf;
               ^
0_0_14916544_25427.cpp:65:13: error: 'queue' was not declared in this scope
             queue[0] = j-1;
             ^
0_0_14916544_25427.cpp:68:68: error: 'dy' was not declared in this scope
                 while(head<tail && dy(queue[head], queue[head+1], j)>=p[i].w*dx(queue[head], queue[head+1]))
                                                                    ^
0_0_14916544_25427.cpp:68:107: error: 'dx' was not declared in this scope
                 while(head<tail && dy(queue[head], queue[head+1], j)>=p[i].w*dx(queue[head], queue[head+1]))
                                                                                                           ^
0_0_14916544_25427.cpp:79:36: error: 'dy' was not declared in this scope
                         if(dy(x,y,j)*dx(y,z) >= dy(y,z,j)*dx(x,y))  tail--;
                                    ^
0_0_14916544_25427.cpp:79:44: error: 'dx' was not declared in this scope
                         if(dy(x,y,j)*dx(y,z) >= dy(y,z,j)*dx(x,y))  tail--;
                                            ^
0_0_14916544_25427.cpp:80:25: error: 'elsebreak' was not declared in this scope
                         elsebreak;
                         ^
0_0_14916544_25427.cpp:85:35: error: 'min' was not declared in this scope
             ans = min(ans, f[n][j]);
                                   ^
0_0_14916544_25427.cpp:85:35: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_14916544_25427.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3444:5: note:   'std::min'
     min(initializer_list<_Tp> __l, _Compare __comp)
     ^
0_0_14916544_25427.cpp:89:5: error: 'return0' was not declared in this scope
     return0;
     ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-27 23:58:05, Gzip enabled