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_39680044_10708.cpp:39:5: error: cannot declare '::main' to be a global variable
   39 | int main
      |     ^~~~
0_0_39680044_10708.cpp:41:32: error: expected '}' before ';' token
   41 |     ios::sync_with_stdio(false);
      |                                ^
0_0_39680044_10708.cpp:40:1: note: to match this '{'
   40 | {
      | ^
0_0_39680044_10708.cpp:43:18: error: expected constructor, destructor, or type conversion before '(' token
   43 |         getprimes(num);
      |                  ^
0_0_39680044_10708.cpp:45:5: error: 'cin' does not name a type
   45 |     cin>>T;
      |     ^~~
0_0_39680044_10708.cpp:46:5: error: expected unqualified-id before 'while'
   46 |     while (T--)
      |     ^~~~~
0_0_39680044_10708.cpp:71:5: error: expected unqualified-id before 'return'
   71 |     return 0;
      |     ^~~~~~
0_0_39680044_10708.cpp:72:1: error: expected declaration before '}' token
   72 | }
      | ^


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-26 16:07:33, Gzip enabled