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_30536243_13577.cpp:3:7: error: 'LL' does not name a type
 const LL p = 1e9 + 7;
       ^
0_0_30536243_13577.cpp:5:1: error: 'LL' does not name a type
 LL FastPow(LL a, LL b)
 ^
0_0_30536243_13577.cpp:13:1: error: 'LL' does not name a type
 LL rev(LL x)
 ^
0_0_30536243_13577.cpp:18:1: error: 'LL' does not name a type
 LL ch(LL x)
 ^
0_0_30536243_13577.cpp:24:1: error: 'LL' does not name a type
 LL r[N], s[N], x[N], a[N], ex[N], sum[N];
 ^
0_0_30536243_13577.cpp: In function 'int main()':
0_0_30536243_13577.cpp:29:21: error: 'scanf' was not declared in this scope
     scanf("%d", &T_T);
                     ^
0_0_30536243_13577.cpp:32:16: error: 'sum' was not declared in this scope
         memset(sum, 0, sizeof(sum));
                ^
0_0_30536243_13577.cpp:32:35: error: 'memset' was not declared in this scope
         memset(sum, 0, sizeof(sum));
                                   ^
0_0_30536243_13577.cpp:34:65: error: 'r' was not declared in this scope
         for (int i = 1; i <= n; i++) scanf("%lld%lld%lld%lld", &r[i], &s[i], &x[i], &a[i]);
                                                                 ^
0_0_30536243_13577.cpp:34:72: error: 's' was not declared in this scope
         for (int i = 1; i <= n; i++) scanf("%lld%lld%lld%lld", &r[i], &s[i], &x[i], &a[i]);
                                                                        ^
0_0_30536243_13577.cpp:34:79: error: 'x' was not declared in this scope
         for (int i = 1; i <= n; i++) scanf("%lld%lld%lld%lld", &r[i], &s[i], &x[i], &a[i]);
                                                                               ^
0_0_30536243_13577.cpp:34:86: error: 'a' was not declared in this scope
         for (int i = 1; i <= n; i++) scanf("%lld%lld%lld%lld", &r[i], &s[i], &x[i], &a[i]);
                                                                                      ^
0_0_30536243_13577.cpp:35:9: error: 'ex' was not declared in this scope
         ex[1] = sum[1] = a[1] * rev(r[1] * rev(s[1]) % p) % p;
         ^
0_0_30536243_13577.cpp:35:26: error: 'a' was not declared in this scope
         ex[1] = sum[1] = a[1] * rev(r[1] * rev(s[1]) % p) % p;
                          ^
0_0_30536243_13577.cpp:35:37: error: 'r' was not declared in this scope
         ex[1] = sum[1] = a[1] * rev(r[1] * rev(s[1]) % p) % p;
                                     ^
0_0_30536243_13577.cpp:35:48: error: 's' was not declared in this scope
         ex[1] = sum[1] = a[1] * rev(r[1] * rev(s[1]) % p) % p;
                                                ^
0_0_30536243_13577.cpp:35:52: error: 'rev' was not declared in this scope
         ex[1] = sum[1] = a[1] * rev(r[1] * rev(s[1]) % p) % p;
                                                    ^
0_0_30536243_13577.cpp:35:56: error: 'p' was not declared in this scope
         ex[1] = sum[1] = a[1] * rev(r[1] * rev(s[1]) % p) % p;
                                                        ^
0_0_30536243_13577.cpp:35:57: error: 'rev' was not declared in this scope
         ex[1] = sum[1] = a[1] * rev(r[1] * rev(s[1]) % p) % p;
                                                         ^
0_0_30536243_13577.cpp:35:57: error: redeclaration of '<typeprefixerror>rev'
0_0_30536243_13577.cpp:35:52: note: previous declaration '<typeprefixerror>rev'
         ex[1] = sum[1] = a[1] * rev(r[1] * rev(s[1]) % p) % p;
                                                    ^
0_0_30536243_13577.cpp:38:13: error: 'LL' was not declared in this scope
             LL pi = ch(r[i] * rev(s[i]));
             ^
0_0_30536243_13577.cpp:39:22: error: 'pi' was not declared in this scope
             ex[i] = (pi * a[i] % p + ch(1 - pi) * ch(sum[i - 1] - sum[x[i] - 1] + a[i]) % p) % p * rev(pi) % p;
                      ^
0_0_30536243_13577.cpp:39:47: error: 'ch' was not declared in this scope
             ex[i] = (pi * a[i] % p + ch(1 - pi) * ch(sum[i - 1] - sum[x[i] - 1] + a[i]) % p) % p * rev(pi) % p;
                                               ^
0_0_30536243_13577.cpp:39:71: error: 'x' was not declared in this scope
             ex[i] = (pi * a[i] % p + ch(1 - pi) * ch(sum[i - 1] - sum[x[i] - 1] + a[i]) % p) % p * rev(pi) % p;
                                                                       ^
0_0_30536243_13577.cpp:46:56: error: 'ch' was not declared in this scope
             printf("%lld\n", ch(sum[r - 1] - sum[l - 1]));
                                                        ^
0_0_30536243_13577.cpp:46:57: error: 'printf' was not declared in this scope
             printf("%lld\n", ch(sum[r - 1] - sum[l - 1]));
                                                         ^


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