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_32866705_28446.cpp:1:30: error: stray '#' in program
 <span style="color:#000000;">#include<stdio.h>
                              ^
0_0_32866705_28446.cpp:1:1: error: expected unqualified-id before '<' token
 <span style="color:#000000;">#include<stdio.h>
 ^
0_0_32866705_28446.cpp: In function 'int main()':
0_0_32866705_28446.cpp:9:24: error: 'scanf' was not declared in this scope
     while(scanf("%d",&n)&&n>=0)
                        ^
0_0_32866705_28446.cpp:20:13: error: 'c1' was not declared in this scope
             c1[i]=0;
             ^
0_0_32866705_28446.cpp:21:13: error: 'c2' was not declared in this scope
             c2[i]=0;
             ^
0_0_32866705_28446.cpp:23:9: error: 'c1' was not declared in this scope
         c1[0]=1;
         ^
0_0_32866705_28446.cpp:37:25: error: 'c2' was not declared in this scope
                         c2[j+k]=1;
                         ^
0_0_32866705_28446.cpp:40:21: error: 'c2' was not declared in this scope
                     c2[j]=1;
                     ^
0_0_32866705_28446.cpp:44:23: error: 'c2' was not declared in this scope
                 c1[j]=c2[j];
                       ^
0_0_32866705_28446.cpp:53:31: error: 'printf' was not declared in this scope
         printf("%d %d\n",s-i,i);
                               ^
0_0_32866705_28446.cpp: At global scope:
0_0_32866705_28446.cpp:56:2: error: expected unqualified-id before '<' token
 }</span>//https://blog.csdn.net/Magic____/article/details/8057484
  ^


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-05-18 17:11:11, Gzip enabled