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_36879081_26303.cpp:8:1: error: invalid use of template-name 'std::map' without an argument list
 map vis, ID;
 ^
0_0_36879081_26303.cpp:9:1: error: invalid use of template-name 'std::vector' without an argument list
 vector e[N];
 ^
0_0_36879081_26303.cpp: In function 'int main()':
0_0_36879081_26303.cpp:15:3: error: 'vis' was not declared in this scope
   vis.clear();
   ^
0_0_36879081_26303.cpp:16:3: error: 'ID' was not declared in this scope
   ID.clear();
   ^
0_0_36879081_26303.cpp:19:24: error: expected ';' before 'scanf'
   for (int i = 1; i    scanf("%lld", &a[i]);
                        ^
0_0_36879081_26303.cpp:19:44: error: expected ')' before ';' token
   for (int i = 1; i    scanf("%lld", &a[i]);
                                            ^
0_0_36879081_26303.cpp:20:8: error: 'i' was not declared in this scope
    sum[i] = sum[i - 1] + a[i];
        ^
0_0_36879081_26303.cpp:21:4: error: 'e' was not declared in this scope
    e[i].clear();
    ^
0_0_36879081_26303.cpp:32:9: error: 'vis' was not declared in this scope
     if (vis.count(x)) printf("%lld\n", vis[x]);
         ^
0_0_36879081_26303.cpp:35:4: error: continue statement not within a loop
    continue;
    ^
0_0_36879081_26303.cpp:2:12: error: expected ';' before 'long'
 #define LL long long
            ^
0_0_36879081_26303.cpp:37:24: note: in expansion of macro 'LL'
   for (int i = 1; i    LL v = sum[i] % sum[n];
                        ^
0_0_36879081_26303.cpp:2:12: error: expected primary-expression before 'long'
 #define LL long long
            ^
0_0_36879081_26303.cpp:37:24: note: in expansion of macro 'LL'
   for (int i = 1; i    LL v = sum[i] % sum[n];
                        ^
0_0_36879081_26303.cpp:2:12: error: expected ')' before 'long'
 #define LL long long
            ^
0_0_36879081_26303.cpp:37:24: note: in expansion of macro 'LL'
   for (int i = 1; i    LL v = sum[i] % sum[n];
                        ^
0_0_36879081_26303.cpp:38:9: error: 'ID' was not declared in this scope
    if (!ID.count(v)) {
         ^
0_0_36879081_26303.cpp:38:18: error: 'v' was not declared in this scope
    if (!ID.count(v)) {
                  ^
0_0_36879081_26303.cpp:41:4: error: 'e' was not declared in this scope
    e[ID[v]].push_back(sum[i]); 
    ^
0_0_36879081_26303.cpp:41:6: error: 'ID' was not declared in this scope
    e[ID[v]].push_back(sum[i]); 
      ^
0_0_36879081_26303.cpp:41:9: error: 'v' was not declared in this scope
    e[ID[v]].push_back(sum[i]); 
         ^
0_0_36879081_26303.cpp:41:27: error: 'i' was not declared in this scope
    e[ID[v]].push_back(sum[i]); 
                           ^
0_0_36879081_26303.cpp: At global scope:
0_0_36879081_26303.cpp:43:3: error: expected unqualified-id before 'for'
   for (int i = 1; i    sort(e[i].begin(), e[i].end());
   ^
0_0_36879081_26303.cpp:43:19: error: 'i' does not name a type
   for (int i = 1; i    sort(e[i].begin(), e[i].end());
                   ^
0_0_36879081_26303.cpp:44:3: error: expected unqualified-id before 'while'
   while (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-16 05:16:58, Gzip enabled