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_39053139_28220.cpp:1:16: error: expected constructor, destructor, or type conversion before '(' token
    1 |             rep(i,0,sz[u]){
      |                ^
0_0_39053139_28220.cpp:4:9: error: expected declaration before '}' token
    4 |         }
      |         ^
0_0_39053139_28220.cpp:5:5: error: expected declaration before '}' token
    5 |     }
      |     ^
0_0_39053139_28220.cpp:6:8: error: expected constructor, destructor, or type conversion before '(' token
    6 |     rep(a,0,4){
      |        ^
0_0_39053139_28220.cpp:11:1: error: expected declaration before '}' token
   11 | }
      | ^
0_0_39053139_28220.cpp: In function 'int main()':
0_0_39053139_28220.cpp:13:17: error: 'T' was not declared in this scope
   13 |     scanf("%d",&T);
      |                 ^
0_0_39053139_28220.cpp:13:5: error: 'scanf' was not declared in this scope
   13 |     scanf("%d",&T);
      |     ^~~~~
0_0_39053139_28220.cpp:15:13: error: 'n' was not declared in this scope
   15 |         sci(n);
      |             ^
0_0_39053139_28220.cpp:15:9: error: 'sci' was not declared in this scope
   15 |         sci(n);
      |         ^~~
0_0_39053139_28220.cpp:16:13: error: 'i' was not declared in this scope
   16 |         rep(i,1,n){
      |             ^
0_0_39053139_28220.cpp:16:9: error: 'rep' was not declared in this scope
   16 |         rep(i,1,n){
      |         ^~~
0_0_39053139_28220.cpp:20:16: error: 'f' was not declared in this scope
   20 |         memset(f,0,sizeof f);
      |                ^
0_0_39053139_28220.cpp:20:9: error: 'memset' was not declared in this scope
   20 |         memset(f,0,sizeof f);
      |         ^~~~~~
0_0_39053139_28220.cpp:1:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
  +++ |+#include <cstring>
    1 |             rep(i,0,sz[u]){
0_0_39053139_28220.cpp:26:9: error: 'dfs' was not declared in this scope
   26 |         dfs(1,0);
      |         ^~~
0_0_39053139_28220.cpp:27:9: error: 'printf' was not declared in this scope
   27 |         printf("%d %d\n",f[0][1][0],f[4][1][0]);
      |         ^~~~~~
0_0_39053139_28220.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 |             rep(i,0,sz[u]){


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-23 04:08:05, Gzip enabled