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_28849030_22475.cpp:1:56: error: stray '#' in program
 <code class=" hljs markdown"><span class="hljs-header">#include <iostream>
                                                        ^
0_0_28849030_22475.cpp:1:1: error: expected unqualified-id before '<' token
 <code class=" hljs markdown"><span class="hljs-header">#include <iostream>
 ^
0_0_28849030_22475.cpp:5:11: error: expected primary-expression before '<' token
 int n,k,a[<span class="hljs-link_label">11000],dp[<span class="hljs-link_label">11000][<span class="hljs-link_reference">110];
           ^
0_0_28849030_22475.cpp:5:12: error: 'span' was not declared in this scope
 int n,k,a[<span class="hljs-link_label">11000],dp[<span class="hljs-link_label">11000][<span class="hljs-link_reference">110];
            ^
0_0_28849030_22475.cpp:5:17: error: expected ']' before 'class'
 int n,k,a[<span class="hljs-link_label">11000],dp[<span class="hljs-link_label">11000][<span class="hljs-link_reference">110];
                 ^
0_0_28849030_22475.cpp: In function 'int main(int, char**)':
0_0_28849030_22475.cpp:8:1: error: expected primary-expression before '<' token
 <span class="hljs-code">    cin>>n>>k;
 ^
0_0_28849030_22475.cpp:8:2: error: 'span' was not declared in this scope
 <span class="hljs-code">    cin>>n>>k;
  ^
0_0_28849030_22475.cpp:9:1: error: expected primary-expression before '<' token
 <span class="hljs-code">    for(int i=1;i<=n;i++)cin>>a[i];
 ^
0_0_28849030_22475.cpp:9:41: error: 'i' was not declared in this scope
 <span class="hljs-code">    for(int i=1;i<=n;i++)cin>>a[i];
                                         ^
0_0_28849030_22475.cpp:10:1: error: expected primary-expression before '<' token
 <span class="hljs-code">    dp[1][(a[1]%k+k)%k]=1;
 ^
0_0_28849030_22475.cpp:11:1: error: expected primary-expression before '<' token
 <span class="hljs-code">    dp[1][(-a[1]%k+k)%k]=1;
 ^
0_0_28849030_22475.cpp:12:1: error: expected primary-expression before '<' token
 <span class="hljs-code">    for(int i=2;i<=n;i++){
 ^
0_0_28849030_22475.cpp:20:1: error: expected primary-expression before '<' token
 <span class="hljs-code">    if(dp[n][0]==1)cout<<"YES"<<endl;
 ^
0_0_28849030_22475.cpp:21:1: error: expected primary-expression before '<' token
 <span class="hljs-code">    else cout<<"NO"<<endl;
 ^
0_0_28849030_22475.cpp:22:1: error: expected primary-expression before '<' token
 <span class="hljs-code">    return 0;
 ^


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-06-17 15:11:57, Gzip enabled