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_16817550_13236.cpp:1:50: error: stray '#' in program
 <li class="alt"><span><span class="preprocessor">#include<iostream></span><span>  </span></span></li><li class=""><span><span class="preprocessor">#include<stack></span><span>  </span></span></li><li class="alt"><span><span class="preprocessor">#include<queue></span><span>  </span></span></li><li class=""><span><span class="preprocessor">#include<stdio.h></span><span>  </span></span></li><li class="alt"><span><span class="preprocessor">#include<algorithm></span><span>  </span></span></li><li class=""><span><span class="preprocessor">#include<string.h></span><span>  </span></span></li><li class="alt"><span><span class="preprocessor">#include<cmath></span><span>  </span></span></li><li class=""><span><span class="preprocessor">#define ll long long</span><span>  </span></span></li><li class="alt"><span><span class="preprocessor">#define oo 1000000007</span><span>  </span></span></li><li class=""><span><span class="preprocessor">#define eps 1e-5</span><span>  </span></span></li><li class="alt"><span><span class="preprocessor">#define MAXN 100010</span><span>  </span></span></li><li class=""><span><span class="keyword">using</span><span> </span><span class="keyword">namespace</span><span> std;   </span></span></li><li class="alt"><span><span class="datatypes">int</span><span> main()  </span></span></li><li class=""><span>{   </span></li><li class="alt"><span>      <span class="datatypes">int</span><span> C,cases,M,N,i,j,k,t;  </span></span></li><li class=""><span>     <span class="comment">// freopen("input.txt","r",stdin);    freopen("output.txt","w",stdout);   </span><span>  </span></span></li><li class="alt"><span>      scanf(<span class="string">"%d"</span><span>,&C);  </span></span></li><li class=""><span>      <span class="keyword">for</span><span> (cases=1;cases<=C;cases++)  </span></span></li><li class="alt"><span>      {   </span></li><li class=""><span>               scanf(<span class="string">"%d%d"</span><span>,&M,&N);   </span></span></li><li class="alt"><span>               printf(<span class="string">"Case #%d: "</span><span>,cases);   </span></span></li><li class=""><span>               <span class="keyword">if</span><span> (M==1)  </span></span></li><li class="alt"><span>               {  </span></li><li class=""><span>                       <span class="keyword">while</span><span> (N--) printf(</span><span class="string">"a"</span><span>);  </span></span></li><li class="alt"><span>               }<span class="keyword">else</span><span>  </span></span></li><li class=""><span>               <span class="keyword">if</span><span> (M==2)  </span></span></li><li class="alt"><span>               {  </span></li><li class=""><span>                       <span class="keyword">if</span><span> (N==1) printf(</span><span class="string">"a"</span><span>); </span><span class="keyword">else</span><span>  </span></span></li><li class="alt"><span>                       <span class="keyword">if</span><span> (N==2) printf(</span><span class="string">"ab"</span><span>); </span><span class="keyword">else</span><span>  </span></span></li><li class=""><span>                       <span class="keyword">if</span><span> (N==3) printf(</span><span class="string">"aab"</span><span>); </span><span class="keyword">else</span><span>  </span></span></li><li class="alt"><span>                       <span class="keyword">if</span><span> (N==4) printf(</span><span class="string">"aabb"</span><span>); </span><span class="keyword">else</span><span>  </span></span></li><li class=""><span>                       <span class="keyword">if</span><span> (N==5) printf(</span><span class="string">"aaaba"</span><span>); </span><span class="keyword">else</span><span>  </span></span></li><li class="alt"><span>                       <span class="keyword">if</span><span> (N==6) printf(</span><span class="string">"aaabab"</span><span>); </span><span class="keyword">else</span><span>  </span></span></li><li class=""><span>                       <span class="keyword">if</span><span> (N==7) printf(</span><span class="string">"aaababb"</span><span>); </span><span class="keyword">else</span><span>  </span></span></li><li class="alt"><span>                       <span class="keyword">if</span><span> (N==8) printf(</span><span class="string">"aaababbb"</span><span>); </span><span class="keyword">else</span><span>  </span></span></li><li class=""><span>                       {    </span></li><li class="alt"><span>                                printf(<span class="string">"aa"</span><span>),N-=2;  </span></span></li><li class=""><span>                                <span class="keyword">for</span><span> (i=1;i<=N/6;i++) printf(</span><span class="string">"aababb"</span><span>);   </span></span></li><li class="alt"><span>                                <span class="keyword">if</span><span> (N%6==1) printf(</span><span class="string">"a"</span><span>);  </span></span></li><li class=""><span>                                <span class="keyword">if</span><span> (N%6==2) printf(</span><span class="string">"aa"</span><span>);  </span></span></li><li class="alt"><span>                                <span class="keyword">if</span><span> (N%6==3) printf(</span><span class="string">"aaa"</span><span>);  </span></span></li><li class=""><span>                                <span class="keyword">if</span><span> (N%6==4) printf(</span><span class="string">"aaaa"</span><span>);  </span></span></li><li class="alt"><span>                                <span class="keyword">if</span><span> (N%6==5) printf(</span><span class="string">"aabab"</span><span>);  </span></span></li><li class=""><span>                       }  </span></li><li class="alt"><span>               }<span class="keyword">else</span><span>  </span></span></li><li class=""><span>               {  </span></li><li class="alt"><span>                       k=0;  </span></li><li class=""><span>                   &nb


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-26 09:51:12, Gzip enabled