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_38832266_1537.cpp: In function 'int main()':
0_0_38832266_1537.cpp:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
0_0_38832266_1537.cpp:9:9: note: in expansion of macro 'int'
    9 |         int T;
      |         ^~~
0_0_38832266_1537.cpp:9:13: error: 'T' was not declared in this scope
    9 |         int T;
      |             ^
0_0_38832266_1537.cpp:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
0_0_38832266_1537.cpp:13:17: note: in expansion of macro 'int'
   13 |                 int n;cin>>n;
      |                 ^~~
0_0_38832266_1537.cpp:13:21: error: 'n' was not declared in this scope
   13 |                 int n;cin>>n;
      |                     ^
0_0_38832266_1537.cpp:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
0_0_38832266_1537.cpp:16:25: note: in expansion of macro 'int'
   16 |                         int a;
      |                         ^~~
0_0_38832266_1537.cpp:16:29: error: 'a' was not declared in this scope
   16 |                         int a;
      |                             ^
0_0_38832266_1537.cpp:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
0_0_38832266_1537.cpp:23:25: note: in expansion of macro 'int'
   23 |                         int a,sum=0,s;
      |                         ^~~
0_0_38832266_1537.cpp:23:29: error: 'a' was not declared in this scope
   23 |                         int a,sum=0,s;
      |                             ^
0_0_38832266_1537.cpp:23:31: error: 'sum' was not declared in this scope
   23 |                         int a,sum=0,s;
      |                               ^~~
0_0_38832266_1537.cpp:23:37: error: 's' was not declared in this scope
   23 |                         int a,sum=0,s;
      |                                     ^
0_0_38832266_1537.cpp:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
0_0_38832266_1537.cpp:28:29: note: in expansion of macro 'int'
   28 |                         for(int i=2;i<=a/i;i++)
      |                             ^~~
0_0_38832266_1537.cpp:28:33: error: 'i' was not declared in this scope
   28 |                         for(int i=2;i<=a/i;i++)
      |                                 ^
0_0_38832266_1537.cpp:28:43: error: expected ')' before ';' token
   28 |                         for(int i=2;i<=a/i;i++)
      |                            ~              ^
      |                                           )
0_0_38832266_1537.cpp:28:44: error: 'i' was not declared in this scope
   28 |                         for(int i=2;i<=a/i;i++)
      |                                            ^


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-25 23:06:54, Gzip enabled