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_16502192_10041.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 <cstdio></span><span>  </span></span></li><li class="alt"><span><span class="preprocessor">#include <cstdlib></span><span>  </span></span></li><li class=""><span><span class="preprocessor">#include <algorithm></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 <stack></span><span>  </span></span></li><li class="alt"><span><span class="preprocessor">#include <map></span><span>  </span></span></li><li class=""><span><span class="preprocessor">#include <cstring></span><span>  </span></span></li><li class="alt"><span><span class="preprocessor">#include <climits></span><span>  </span></span></li><li class=""><span><span class="preprocessor">#include <cmath></span><span>  </span></span></li><li class="alt"><span><span class="preprocessor">#include <cctype></span><span>  </span></span></li><li class=""><span>  </span></li><li class="alt"><span><span class="keyword">const</span><span> </span><span class="datatypes">int</span><span> inf = 0x7f7f7f7f;</span><span class="comment">//2139062143</span><span>  </span></span></li><li class=""><span><span class="keyword">typedef</span><span> </span><span class="datatypes">long</span><span> </span><span class="datatypes">long</span><span> ll;  </span></span></li><li class="alt"><span><span class="keyword">using</span><span> </span><span class="keyword">namespace</span><span> std;  </span></span></li><li class=""><span>  </span></li><li class="alt"><span><span class="datatypes">int</span><span> sum1[30];  </span></span></li><li class=""><span><span class="datatypes">int</span><span> sum2[30];  </span></span></li><li class="alt"><span><span class="datatypes">int</span><span> sum3[30];  </span></span></li><li class=""><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> t;  </span></span></li><li class=""><span>    <span class="datatypes">int</span><span> a,b,c;  </span></span></li><li class="alt"><span>    <span class="datatypes">int</span><span> i,j,k;  </span></span></li><li class=""><span>    scanf(<span class="string">"%d"</span><span>,&t);  </span></span></li><li class="alt"><span>    <span class="keyword">while</span><span>(t--)  </span></span></li><li class=""><span>    {  </span></li><li class="alt"><span>        memset(sum1,0,<span class="keyword">sizeof</span><span>(sum1));  </span></span></li><li class=""><span>        memset(sum2,0,<span class="keyword">sizeof</span><span>(sum2));  </span></span></li><li class="alt"><span>        memset(sum3,0,<span class="keyword">sizeof</span><span>(sum3));  </span></span></li><li class=""><span>        scanf(<span class="string">"%d%d%d"</span><span>,&a,&b,&c);  </span></span></li><li class="alt"><span>        getchar();  </span></li><li class=""><span>        <span class="datatypes">char</span><span> d;  </span></span></li><li class="alt"><span>        <span class="datatypes">int</span><span> e;  </span></span></li><li class=""><span>        <span class="keyword">for</span><span>(i=0; i<a; i++)  </span></span></li><li class="alt"><span>        {  </span></li><li class=""><span>            scanf(<span class="string">"%c%d"</span><span>,&d,&e);  </span></span></li><li class="alt"><span>            getchar();  </span></li><li class=""><span>            sum1[d-<span class="string">'A'</span><span>] = e;  </span></span></li><li class="alt"><span>        }  </span></li><li class=""><span>        <span class="keyword">for</span><span>(i=0; i<b; i++)  </span></span></li><li class="alt"><span>        {  </span></li><li class=""><span>            scanf(<span class="string">"%c%d"</span><span>,&d,&e);  </span></span></li><li class="alt"><span>            getchar();  </span></li><li class=""><span>            sum2[d-<span class="string">'A'</span><span>] = e;  </span></span></li><li class="alt"><span>        }  </span></li><li class=""><span>        <span class="datatypes">int</span><span> max1 = 0;  </span></span></li><li class="alt"><span>        <span class="keyword">for</span><span>(i=0; i<c; i++)  </span></span></li><li class=""><span>        {  </span></li><li class="alt"><span>            scanf(<span class="string">"%c%d"</span><span>,&d,&e);  </span></span></li><li class=""><span>            getchar();  </span></li><li class="alt"><span>            sum3[d-<span class="string">'A'</span><span>] = e;  </span></span></li><li class=""><span>            <span class="keyword">if</span><span>(e > max1)  </span></span></li><li class="alt"><span>            {  </span></li><li class=""><span>                max1 = e;<span class="comment">//就是这写错了,写成a了</span><span>  </span></span></li><li class="alt"><span>            }  </span></li><li class=""><span>        }  </span></li><li class="alt"><span>        <span class="datatypes">bool</span><span> flag = </span><span class="keyword">false</span><span>;  </span></span></li><li class=""><span>        <span class="datatypes">int</span><span> x,y;  </span></span></li><li class="alt"><span>        <span class="keyword">for</span><span>(i=1; i<=max1; i++)  </span></span></li><li class=""><span>        {  </span></li><li class="alt"><span>            <span class="keyword">for</span><span>(j=1; j<=max1; j++)  </span></span></li><li class=""><span>            {  </span></li><li class="alt"><span>                <span class="keyword">for</span><span>(k=0; k<26; k++)  </span></span></li><li class=""><span>                {  </span></li><li class="alt"><span>                    <span class="keyword">if</span><span>(i*sum1[k]+j*sum2[k] != sum3[k])  </span></span></li><li class=""><span>                    {  </span></li><li class="alt"><span>                        <span class="keyword">break</span><span>;  </span></span></li><li class=""><span>                    }  </span></li><li class="alt"><span>                }  </span></li><li class=""><span>                <span class="keyword">if</span><span>(k == 26)  </span></span></li><li class="alt"><span>                {  </span></li><li class=""><span>          


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-29 20:18:30, Gzip enabled