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_22876557_28495.cpp:1:2: error: stray '#' in program
 x#include <bits/stdc++.h>
  ^
0_0_22876557_28495.cpp:1:1: error: 'x' does not name a type
 x#include <bits/stdc++.h>
 ^
0_0_22876557_28495.cpp: In function 'int main()':
0_0_22876557_28495.cpp:5:19: error: 'scanf' was not declared in this scope
     scanf("%d", &T);
                   ^
0_0_22876557_28495.cpp:14:22: error: 'puts' was not declared in this scope
             puts("NO");
                      ^
0_0_22876557_28495.cpp:24:28: error: 'sort' was not declared in this scope
         sort(ans, ans + idx);
                            ^
0_0_22876557_28495.cpp:32:25: error: 'puts' was not declared in this scope
         if(f) puts("YES");
                         ^
0_0_22876557_28495.cpp:33:23: error: 'puts' was not declared in this scope
         else puts("NO");
                       ^


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-02-18 22:17:02, Gzip enabled