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_35697478_10575.cpp:24:13: error: 'MM' does not name a type
 #define int MM=500005;
             ^
0_0_35697478_10575.cpp:29:1: note: in expansion of macro 'int'
 int main()
 ^
0_0_35697478_10575.cpp: In function 'int main()':
0_0_35697478_10575.cpp:24:13: error: 'MM' was not declared in this scope
 #define int MM=500005;
             ^
0_0_35697478_10575.cpp:31:5: note: in expansion of macro 'int'
     int T,n;
     ^
0_0_35697478_10575.cpp:31:9: error: 'T' was not declared in this scope
     int T,n;
         ^
0_0_35697478_10575.cpp:31:11: error: 'n' was not declared in this scope
     int T,n;
           ^
0_0_35697478_10575.cpp:32:9: error: 'a' was not declared in this scope
     int a[MM];
         ^
0_0_35697478_10575.cpp:33:13: error: 'i' was not declared in this scope
     for(int i=1;i<MM;++i)
             ^
0_0_35697478_10575.cpp:33:21: error: expected ')' before ';' token
     for(int i=1;i<MM;++i)
                     ^
0_0_35697478_10575.cpp:33:24: error: 'i' was not declared in this scope
     for(int i=1;i<MM;++i)
                        ^
0_0_35697478_10575.cpp:34:17: error: 'j' was not declared in this scope
         for(int j=i*2;j<MM;j+=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-30 03:16:51, Gzip enabled