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_16891194_29498.cpp: In function 'void printf(int)':
0_0_16891194_29498.cpp:10:9: error: expected ';' before 'printf'
         printf(i?" %d":"%d",pot[i]);
         ^
0_0_16891194_29498.cpp:10:35: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
         printf(i?" %d":"%d",pot[i]);
                                   ^
0_0_16891194_29498.cpp:10:35: error: too many arguments to function 'void printf(int)'
0_0_16891194_29498.cpp:7:6: note: declared here
 void printf(int len)
      ^
0_0_16891194_29498.cpp:10:36: error: expected ')' before ';' token
         printf(i?" %d":"%d",pot[i]);
                                    ^
0_0_16891194_29498.cpp:11:16: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
     printf("\n");
                ^
0_0_16891194_29498.cpp:7:6: note: initializing argument 1 of 'void printf(int)'
 void printf(int len)
      ^
0_0_16891194_29498.cpp: In function 'bool check(int, int)':
0_0_16891194_29498.cpp:16:5: error: expected ';' before 'if'
     if(pos[i]==pos[e])
     ^
0_0_16891194_29498.cpp:16:5: error: expected primary-expression before 'if'
0_0_16891194_29498.cpp:16:5: error: expected ')' before 'if'
0_0_16891194_29498.cpp: In function 'void dfs(int, int)':
0_0_16891194_29498.cpp:32:5: error: expected ';' before '{' token
     {
     ^
0_0_16891194_29498.cpp:32:5: error: expected primary-expression before '{' token
0_0_16891194_29498.cpp:32:5: error: expected ')' before '{' token
0_0_16891194_29498.cpp: In function 'int main()':
0_0_16891194_29498.cpp:49:29: error: 'scanf' was not declared in this scope
     while(scanf("%d%d",&n,&p)!=EOF)
                             ^
0_0_16891194_29498.cpp:49:32: error: 'EOF' was not declared in this scope
     while(scanf("%d%d",&n,&p)!=EOF)
                                ^
0_0_16891194_29498.cpp:51:32: error: 'memset' was not declared in this scope
         memset(pos,0,sizeof pos);
                                ^
0_0_16891194_29498.cpp:54:13: error: expected ';' before 'scanf'
             scanf("%d",&pos[i]);
             ^
0_0_16891194_29498.cpp:54:32: error: expected ')' before ';' token
             scanf("%d",&pos[i]);
                                ^
0_0_16891194_29498.cpp:57:9: error: expected ';' before '{' token
         {
         ^
0_0_16891194_29498.cpp:57:9: error: expected primary-expression before '{' token
0_0_16891194_29498.cpp:57:9: error: expected ')' before '{' token
0_0_16891194_29498.cpp:63:20: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
         printf("\n");
                    ^
0_0_16891194_29498.cpp:7:6: note: initializing argument 1 of 'void printf(int)'
 void printf(int len)
      ^


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-27 06:07:51, Gzip enabled