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_16129735_9116.cpp:1:50: error: stray '#' in program
 <li class="alt"><span><span class="preprocessor">#include<stdio.h></span><span>  </span></span></li><li class=""><span><span class="datatypes">char</span><span> *city[10]=  </span></span></li><li class="alt"><span>{<span class="string">""</span><span>,</span><span class="string">"Zhejiang"</span><span>,</span><span class="string">"Beijing"</span><span>,</span><span class="string">"Taiwan"</span><span>,</span><span class="string">"Hong Kong"</span><span>,  </span></span></li><li class=""><span><span class="string">"Macao"</span><span>,</span><span class="string">"Tibet"</span><span>,</span><span class="string">"Liaoning"</span><span>,</span><span class="string">"Shanghai"</span><span>};  </span></span></li><li class="alt"><span><span class="datatypes">int</span><span> vis[9][9];  </span></span></li><li class=""><span><span class="datatypes">int</span><span> main()  </span></span></li><li class="alt"><span>{  </span></li><li class=""><span>    vis[3][3]=1;vis[1][1]=2;vis[7][1]=3;vis[8][1]=4;  </span></li><li class="alt"><span>    vis[8][2]=5;vis[5][4]=6;vis[2][1]=7;vis[3][1]=8;  </span></li><li class=""><span>    <span class="datatypes">int</span><span> t;</span><span class="datatypes">char</span><span> s[25];  </span></span></li><li class="alt"><span>    scanf(<span class="string">"%d"</span><span>,&t);  </span></span></li><li class=""><span>    <span class="keyword">while</span><span>(t--)  </span></span></li><li class="alt"><span>    {  </span></li><li class=""><span>        scanf(<span class="string">"%s"</span><span>,s);  </span></span></li><li class="alt"><span>        printf(<span class="string">"He/She is from %s,and his/her birthday is on %c%c,%c%c,%c%c%c%c based on the table.\n"</span><span>  </span></span></li><li class=""><span>        ,city[vis[s[0]-<span class="string">'0'</span><span>][s[1]-</span><span class="string">'0'</span><span>]],s[10],s[11],s[12],s[13],s[6],s[7],s[8],s[9]);  </span></span></li><li class="alt"><span>    }  </span></li><li class=""><span>    <span class="keyword">return</span><span> 0;  </span></span></li><li class="alt"><span>}  </span></li>
                                                  ^
0_0_16129735_9116.cpp:1:1: error: expected unqualified-id before '<' token
 <li class="alt"><span><span class="preprocessor">#include<stdio.h></span><span>  </span></span></li><li class=""><span><span class="datatypes">char</span><span> *city[10]=  </span></span></li><li class="alt"><span>{<span class="string">""</span><span>,</span><span class="string">"Zhejiang"</span><span>,</span><span class="string">"Beijing"</span><span>,</span><span class="string">"Taiwan"</span><span>,</span><span class="string">"Hong Kong"</span><span>,  </span></span></li><li class=""><span><span class="string">"Macao"</span><span>,</span><span class="string">"Tibet"</span><span>,</span><span class="string">"Liaoning"</span><span>,</span><span class="string">"Shanghai"</span><span>};  </span></span></li><li class="alt"><span><span class="datatypes">int</span><span> vis[9][9];  </span></span></li><li class=""><span><span class="datatypes">int</span><span> main()  </span></span></li><li class="alt"><span>{  </span></li><li class=""><span>    vis[3][3]=1;vis[1][1]=2;vis[7][1]=3;vis[8][1]=4;  </span></li><li class="alt"><span>    vis[8][2]=5;vis[5][4]=6;vis[2][1]=7;vis[3][1]=8;  </span></li><li class=""><span>    <span class="datatypes">int</span><span> t;</span><span class="datatypes">char</span><span> s[25];  </span></span></li><li class="alt"><span>    scanf(<span class="string">"%d"</span><span>,&t);  </span></span></li><li class=""><span>    <span class="keyword">while</span><span>(t--)  </span></span></li><li class="alt"><span>    {  </span></li><li class=""><span>        scanf(<span class="string">"%s"</span><span>,s);  </span></span></li><li class="alt"><span>        printf(<span class="string">"He/She is from %s,and his/her birthday is on %c%c,%c%c,%c%c%c%c based on the table.\n"</span><span>  </span></span></li><li class=""><span>        ,city[vis[s[0]-<span class="string">'0'</span><span>][s[1]-</span><span class="string">'0'</span><span>]],s[10],s[11],s[12],s[13],s[6],s[7],s[8],s[9]);  </span></span></li><li class="alt"><span>    }  </span></li><li class=""><span>    <span class="keyword">return</span><span> 0;  </span></span></li><li class="alt"><span>}  </span></li>
 ^
0_0_16129735_9116.cpp:1:91: error: expected constructor, destructor, or type conversion before ';' token
 <li class="alt"><span><span class="preprocessor">#include<stdio.h></span><span>  </span></span></li><li class=""><span><span class="datatypes">char</span><span> *city[10]=  </span></span></li><li class="alt"><span>{<span class="string">""</span><span>,</span><span class="string">"Zhejiang"</span><span>,</span><span class="string">"Beijing"</span><span>,</span><span class="string">"Taiwan"</span><span>,</span><span class="string">"Hong Kong"</span><span>,  </span></span></li><li class=""><span><span class="string">"Macao"</span><span>,</span><span class="string">"Tibet"</span><span>,</span><span class="string">"Liaoning"</span><span>,</span><span class="string">"Shanghai"</span><span>};  </span></span></li><li class="alt"><span><span class="datatypes">int</span><span> vis[9][9];  </span></span></li><li class=""><span><span class="datatypes">int</span><span> main()  </span></span></li><li class="alt"><span>{  </span></li><li class=""><span>    vis[3][3]=1;vis[1][1]=2;vis[7][1]=3;vis[8][1]=4;  </span></li><li class="alt"><span>    vis[8][2]=5;vis[5][4]=6;vis[2][1]=7;vis[3][1]=8;  </span></li><li class=""><span>    <span class="datatypes">int</span><span> t;</span><span class="datatypes">char</span><span> s[25];  </span></span></li><li class="alt"><span>    scanf(<span class="string">"%d"</span><span>,&t);  </span></span></li><li class=""><span>    <span class="keyword">while</span><span>(t--)  </span></span></li><li class="alt"><span>    {  </span></li><li class=""><span>        scanf(<span class="string">"%s"</span><span>,s);  </span></span></li><li class="alt"><span>        printf(<span class="string">"He/She is from %s,and his/her birthday is on %c%c,%c%c,%c%c%c%c based on the table.\n"</span><span>  </span></span></li><li class=""><span>        ,city[vis[s[0]-<span class="string">'0'</span><span>][s[1]-</span><span class="string">'0'</span><span>]],s[10],s[11],s[12],s[13],s[6],s[7],s[8],s[9]);  </span></span></li><li class="alt"><span>    }  </span></li><li class=""><span>    <span class="keyword">return</span><span> 0;  </span></span></li><li class="alt"><span>}  </span></li>
                                                                                           ^
0_0_16129735_9116.cpp:1:92: error: expected unqualified-id before '<' token
 <li class="alt"><span><span class="preprocessor">#include<stdio.h></span><span>  </span></span></li><li class=""><span><span class="datatypes">char</span><span> *city[10]=  </span></span></li><li class="alt"><span>{<span class="string">""</span><span>,</span><span class="string">"Zhejiang"</span><span>,</span><span class="string">"Beijing"</span><span>,</span><span class="string">"Taiwan"</span><span>,</span><span class="string">"Hong Kong"</span><span>,  </span></span></li><li class=""><span><span class="string">"Macao"</span><span>,</span><span class="string">"Tibet"</span><span>,</span><span class="string">"Liaoning"</span><span>,</span><span class="string">"Shanghai"</span><span>};  </span></span></li><li class="alt"><span><span class="datatypes">int</span><span> vis[9][9];  </span></span></li><li class=""><span><span class="datatypes">int</span><span> main()  </span></span></li><li class="alt"><span>{  </span></li><li class=""><span>    vis[3][3]=1;vis[1][1]=2;vis[7][1]=3;vis[8][1]=4;  </span></li><li class="alt"><span>    vis[8][2]=5;vis[5][4]=6;vis[2][1]=7;vis[3][1]=8;  </span></li><li class=""><span>    <span class="datatypes">int</span><span> t;</span><span class="datatypes">char</span><span> s[25];  </span></span></li><li class="alt"><span>    scanf(<span class="string">"%d"</span><span>,&t);  </span></span></li><li class=""><span>    <span class="keyword">while</span><span>(t--)  </span></span></li><li class="


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-17 05:32:12, Gzip enabled