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_38811872_5854.cpp:4:20: error: stray '\243' in program
    4 | const int N = 10002<a3><bb>
      |                    ^~~~
0_0_38811872_5854.cpp:4:21: error: stray '\273' in program
    4 | const int N = 10002<a3><bb>
      |                        ^~~~
0_0_38811872_5854.cpp:5:1: error: expected ',' or ';' before 'int'
    5 | int k,sg[N],s[N],vis[N];
      | ^~~
0_0_38811872_5854.cpp: In function 'int main()':
0_0_38811872_5854.cpp:8:27: error: 'k' was not declared in this scope
    8 |         while(scanf("%d",&k)!=EOF) {
      |                           ^
0_0_38811872_5854.cpp:10:53: error: 's' was not declared in this scope
   10 |             for(int i = 1; i <= k; ++i) scanf("%d",&s[i]);
      |                                                     ^
0_0_38811872_5854.cpp:11:13: error: 'sg' was not declared in this scope
   11 |             sg[0] = 0;
      |             ^~
0_0_38811872_5854.cpp:13:47: error: 'vis' was not declared in this scope
   13 |                 for(int j = 0; j <= 100; ++j) vis[j] = 0;
      |                                               ^~~
0_0_38811872_5854.cpp:15:28: error: 's' was not declared in this scope
   15 |                    if(i >= s[j] && sg[i - s[j]] <= 100) vis[sg[i - s[j]]] = 1;
      |                            ^
0_0_38811872_5854.cpp:15:57: error: 'vis' was not declared in this scope
   15 |                    if(i >= s[j] && sg[i - s[j]] <= 100) vis[sg[i - s[j]]] = 1;
      |                                                         ^~~
0_0_38811872_5854.cpp:18:25: error: 'vis' was not declared in this scope
   18 |                     if(!vis[j]) {
      |                         ^~~


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-12-03 00:13:51, Gzip enabled