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_18401280_707.cpp:12:1: error: expected ';' after struct definition
 }
 ^
0_0_18401280_707.cpp: In function 'bool operator<(const Team&, const Team&)':
0_0_18401280_707.cpp:23:23: error: 'm' was not declared in this scope
   for (int i = 0; i < m; i ++) {
                       ^
0_0_18401280_707.cpp:24:47: error: 'stk1' was not declared in this scope
    if (p1.p[i].froz == false && p1.p[i].type) stk1[++ top1] = p1.p[i].last_sub;
                                               ^
0_0_18401280_707.cpp:25:47: error: 'stk2' was not declared in this scope
    if (p2.p[i].froz == false && p2.p[i].type) stk2[++ top2] = p2.p[i].last_sub;
                                               ^
0_0_18401280_707.cpp:27:8: error: 'stk1' was not declared in this scope
   sort(stk1 + 1, stk1 + top1 + 1);
        ^
0_0_18401280_707.cpp:28:8: error: 'stk2' was not declared in this scope
   sort(stk2 + 1, stk2 + top2 + 1);
        ^
0_0_18401280_707.cpp:31:17: error: 'b' was not declared in this scope
   return strcmp(b[p1.name], b[p2.name]) < 0;
                 ^
0_0_18401280_707.cpp: In function 'int main()':
0_0_18401280_707.cpp:51:25: error: 'n' was not declared in this scope
   scanf("%d %d %d %d", &n, &m, &T, &t);
                         ^
0_0_18401280_707.cpp:51:29: error: 'm' was not declared in this scope
   scanf("%d %d %d %d", &n, &m, &T, &t);
                             ^
0_0_18401280_707.cpp:51:37: error: 't' was not declared in this scope
   scanf("%d %d %d %d", &n, &m, &T, &t);
                                     ^
0_0_18401280_707.cpp:53:16: error: 'str' was not declared in this scope
    scanf("%s", str);
                ^
0_0_18401280_707.cpp:58:9: error: 'M' was not declared in this scope
    if (!M.count(s)) {
         ^
0_0_18401280_707.cpp:59:15: error: 'cnt' was not declared in this scope
     M[s] = ++ cnt;
               ^
0_0_18401280_707.cpp:60:36: error: 'b' was not declared in this scope
     for (int j = 0; j < len; j ++) b[cnt][j] = str[j];
                                    ^
0_0_18401280_707.cpp:61:5: error: 'b' was not declared in this scope
     b[cnt][len] = '\0';
     ^
0_0_18401280_707.cpp:64:14: error: 'M' was not declared in this scope
    int idx = M[s];
              ^
0_0_18401280_707.cpp:67:17: error: 'x' was not declared in this scope
    scanf("%d", &x);
                 ^
0_0_18401280_707.cpp:74:4: error: 'e' was not declared in this scope
    e[i] = event(idx, idy, tt, type);
    ^
0_0_18401280_707.cpp:76:8: error: 'e' was not declared in this scope
   sort(e + 1, e + 1 + n, cmp);
        ^
0_0_18401280_707.cpp:84:9: error: 'a' was not declared in this scope
     if (a[id].p[prob].type == false) {
         ^
0_0_18401280_707.cpp:99:9: error: 'a' was not declared in this scope
     if (a[id].p[prob].type == false) {
         ^
0_0_18401280_707.cpp:111:33: error: expected primary-expression at end of input
     else if (a[id].p[prob].froz == 
                                 ^
0_0_18401280_707.cpp:111:33: error: expected ')' at end of input
0_0_18401280_707.cpp:111:33: error: expected statement at end of input
0_0_18401280_707.cpp:111:33: error: expected '}' at end of input
0_0_18401280_707.cpp:111:33: error: expected '}' at end of input
0_0_18401280_707.cpp:111:33: error: expected '}' at end of input
0_0_18401280_707.cpp:111:33: error: expected '}' at end of input


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-28 08:20:37, Gzip enabled