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="
|