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_37973052_17924.cpp:2:9: error: 'pair' does not name a type
 typedef pair<int, int> pii;
         ^
0_0_37973052_17924.cpp: In function 'void read(T&)':
0_0_37973052_17924.cpp:4:40: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
     int f = 1; x = 0; char s = getchar();
                                        ^
0_0_37973052_17924.cpp:4:40: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_37973052_17924.cpp:5:68: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
     while (s < '0' || s > '9') { if (s == '-') f = -1; s = getchar(); }
                                                                    ^
0_0_37973052_17924.cpp:6:69: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
     while (s <= '9' && s >= '0') x = x * 10 + (s ^ 48), s = getchar();
                                                                     ^
0_0_37973052_17924.cpp: In function 'void pr(T)':
0_0_37973052_17924.cpp:10:29: error: there are no arguments to 'putchar' that depend on a template parameter, so a declaration of 'putchar' must be available [-fpermissive]
     if (x < 0) { putchar('-'); pr(-x); return ; }
                             ^
0_0_37973052_17924.cpp: At global scope:
0_0_37973052_17924.cpp:25:1: error: 'vi' does not name a type
 vi cnt[N];
 ^
0_0_37973052_17924.cpp:26:1: error: 'vi' does not name a type
 vi edge[N];
 ^
0_0_37973052_17924.cpp: In function 'void dfs(int)':
0_0_37973052_17924.cpp:30:5: error: 'cnt' was not declared in this scope
     cnt[val].pb(2 * u);
     ^
0_0_37973052_17924.cpp:33:57: error: 'all' was not declared in this scope
         ans[u] = cnt[x].size() - (upper_bound(all(cnt[x]), u) - cnt[x].begin());
                                                         ^
0_0_37973052_17924.cpp:33:61: error: 'upper_bound' was not declared in this scope
         ans[u] = cnt[x].size() - (upper_bound(all(cnt[x]), u) - cnt[x].begin());
                                                             ^
0_0_37973052_17924.cpp:35:18: error: 'edge' was not declared in this scope
     for(auto t : edge[u]) dfs(t);
                  ^
0_0_37973052_17924.cpp: In function 'void solve()':
0_0_37973052_17924.cpp:39:28: error: 'scanf' was not declared in this scope
     scanf("%s%d", s + 1, &k);
                            ^
0_0_37973052_17924.cpp:40:25: error: 'strlen' was not declared in this scope
     int n = strlen(s + 1);
                         ^
0_0_37973052_17924.cpp:41:44: error: 'edge' was not declared in this scope
     for(int i = 0; i <= n; i++) ne[i] = 0, edge[i].clear();
                                            ^
0_0_37973052_17924.cpp:46:9: error: 'edge' was not declared in this scope
         edge[j].pb(i);
         ^
0_0_37973052_17924.cpp:48:5: error: 'edge' was not declared in this scope
     edge[0].pb(1);
     ^
0_0_37973052_17924.cpp:55:5: error: 'cout' was not declared in this scope
     cout << res << '\n';
     ^
0_0_37973052_17924.cpp: In function 'int main()':
0_0_37973052_17924.cpp:68:11: error: 'exit' was not declared in this scope
     exit(0);
           ^
0_0_37973052_17924.cpp: In instantiation of 'void read(T&) [with T = int]':
0_0_37973052_17924.cpp:64:11:   required from here
0_0_37973052_17924.cpp:4:40: error: 'getchar' was not declared in this scope
     int f = 1; x = 0; char s = getchar();
                                        ^


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-06-28 13:32:14, Gzip enabled