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_32229496_10698.cpp:45:18: error: declaration does not declare anything [-fpermissive]
 #define int long long;
                  ^
0_0_32229496_10698.cpp:47:7: note: in expansion of macro 'int'
 const int P = 1e9 + 7;
       ^
0_0_32229496_10698.cpp:47:11: error: 'P' does not name a type
 const int P = 1e9 + 7;
           ^
0_0_32229496_10698.cpp:45:18: error: declaration does not declare anything [-fpermissive]
 #define int long long;
                  ^
0_0_32229496_10698.cpp:48:1: note: in expansion of macro 'int'
 int n;
 ^
0_0_32229496_10698.cpp:48:5: error: 'n' does not name a type
 int n;
     ^
0_0_32229496_10698.cpp:45:18: error: declaration does not declare anything [-fpermissive]
 #define int long long;
                  ^
0_0_32229496_10698.cpp:50:8: note: in expansion of macro 'int'
 inline int phi(int x)
        ^
0_0_32229496_10698.cpp:45:22: error: expected ')' before ';' token
 #define int long long;
                      ^
0_0_32229496_10698.cpp:50:16: note: in expansion of macro 'int'
 inline int phi(int x)
                ^
0_0_32229496_10698.cpp:45:22: error: expected constructor, destructor, or type conversion before ';' token
 #define int long long;
                      ^
0_0_32229496_10698.cpp:50:16: note: in expansion of macro 'int'
 inline int phi(int x)
                ^
0_0_32229496_10698.cpp:50:20: error: 'x' does not name a type
 inline int phi(int x)
                    ^
0_0_32229496_10698.cpp: In function 'int main()':
0_0_32229496_10698.cpp:80:26: error: 'n' was not declared in this scope
     while (~scanf("%d", &n) && n != 0)
                          ^
0_0_32229496_10698.cpp:45:18: error: declaration does not declare anything [-fpermissive]
 #define int long long;
                  ^
0_0_32229496_10698.cpp:82:9: note: in expansion of macro 'int'
         int p = phi(n);
         ^
0_0_32229496_10698.cpp:82:13: error: 'p' was not declared in this scope
         int p = phi(n);
             ^
0_0_32229496_10698.cpp:82:22: error: 'phi' was not declared in this scope
         int p = phi(n);
                      ^
0_0_32229496_10698.cpp:45:18: error: declaration does not declare anything [-fpermissive]
 #define int long long;
                  ^
0_0_32229496_10698.cpp:83:9: note: in expansion of macro 'int'
         int ans = (((ll)(n * (n - 1)) >> 1) % P - ((ll)(n * p) >> 1) % P) % P;
         ^
0_0_32229496_10698.cpp:83:13: error: 'ans' was not declared in this scope
         int ans = (((ll)(n * (n - 1)) >> 1) % P - ((ll)(n * p) >> 1) % P) % P;
             ^
0_0_32229496_10698.cpp:83:47: error: 'P' was not declared in this scope
         int ans = (((ll)(n * (n - 1)) >> 1) % P - ((ll)(n * p) >> 1) % P) % P;
                                               ^


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 12:46:01, Gzip enabled