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_32848043_22378.cpp:1:82: error: stray '#' in program
 <span style="font-size:18px;"><span class="sh_preproc" style="font-weight:bold;">#include</span><span class="sh_string" style="color:#FF0000;font-family:monospace;"><iostream></span>
                                                                                  ^
0_0_32848043_22378.cpp:37:945: error: stray '#' in program
   <span class="sh_keyword" style="color:#0000FF;font-weight:bold;">for</span> <span class="sh_symbol">(</span><span class="sh_type">int</span> i <span class="sh_symbol">=</span> <span class="sh_number" style="color:#800080;">1</span><span class="sh_symbol">;</span> i <span class="sh_symbol"><=</span> N<span class="sh_symbol">;</span> i<span class="sh_symbol">++)</span>cout <span class="sh_symbol"><<</span> ans<span class="sh_symbol">[</span>i<span class="sh_symbol">]</span> <span class="sh_symbol"><<</span> <span class="sh_symbol">((</span>i <span class="sh_symbol"><</span> N<span class="sh_symbol">)</span> <span class="sh_symbol">?</span> <span class="sh_string" style="color:#FF0000;font-family:monospace;">" "</span> <span class="sh_symbol">:</span> <span class="sh_string" style="color:#FF0000;font-family:monospace;">"</span><span class="sh_specialchar" style="font-family:monospace;">\n</span><span class="sh_string" style="color:#FF0000;font-family:monospace;">"</span><span class="sh_symbol">);</span>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
0_0_32848043_22378.cpp:1:1: error: expected unqualified-id before '<' token
 <span style="font-size:18px;"><span class="sh_preproc" style="font-weight:bold;">#include</span><span class="sh_string" style="color:#FF0000;font-family:monospace;"><iostream></span>
 ^
0_0_32848043_22378.cpp:2:189: error: expected unqualified-id before '<' token
 <span class="sh_keyword" style="color:#0000FF;font-weight:bold;">using</span> <span class="sh_keyword" style="color:#0000FF;font-weight:bold;">namespace</span> std<span class="sh_symbol">;</span>
                                                                                                                                                                                             ^
0_0_32848043_22378.cpp:4:420: error: expected unqualified-id before '<' token
 <span class="sh_type">int</span> N<span class="sh_symbol">,</span> n<span class="sh_symbol">,</span> key<span class="sh_symbol">,</span> sum<span class="sh_symbol">[</span><span class="sh_number" style="color:#800080;">5000</span><span class="sh_symbol">],</span> ans<span class="sh_symbol">[</span><span class="sh_number" style="color:#800080;">101</span><span class="sh_symbol">],</span> minn<span class="sh_symbol">;</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-27 02:57:43, Gzip enabled