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_21009153_11961.cpp:1:100: error: stray '#' in program
 <pre code_snippet_id="2058090" snippet_file_name="blog_20161218_1_820272"  name="code" class="cpp">#include<bits/stdc++.h>
                                                                                                    ^
0_0_21009153_11961.cpp:1:1: error: expected unqualified-id before '<' token
 <pre code_snippet_id="2058090" snippet_file_name="blog_20161218_1_820272"  name="code" class="cpp">#include<bits/stdc++.h>
 ^
0_0_21009153_11961.cpp: In function 'int main()':
0_0_21009153_11961.cpp:22:18: error: 'scanf' was not declared in this scope
     scanf("%d",&T);
                  ^
0_0_21009153_11961.cpp:25:32: error: 'memset' was not declared in this scope
         memset(ft,-1,sizeof(ft));
                                ^
0_0_21009153_11961.cpp:37:71: error: 'printf' was not declared in this scope
             if(x==2) printf("%d\n",sum(z)-sum(y-1)+(int)(a[y]==a[y-1]));
                                                                       ^
0_0_21009153_11961.cpp:41:45: error: 'swap' was not declared in this scope
                 if(g[f[y]]>g[f[z]]) swap(y,z);//将颜色少的改成颜色多的。
                                             ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-03-01 21:43:26, Gzip enabled