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_35101753_17798.cpp:61:7: error: empty character constant
 cout<<'';
       ^
0_0_35101753_17798.cpp:2:1: error: 'usingnamespacestd' does not name a type
 usingnamespacestd;
 ^
0_0_35101753_17798.cpp:3:13: error: expected constructor, destructor, or type conversion before '(' token
 constintMax1(10001);
             ^
0_0_35101753_17798.cpp:4:13: error: expected constructor, destructor, or type conversion before '(' token
 constintMax2(101);
             ^
0_0_35101753_17798.cpp:5:1: error: 'intnum' does not name a type
 intnum[Max1];
 ^
0_0_35101753_17798.cpp:6:1: error: 'inttemp' does not name a type
 inttemp[Max1];
 ^
0_0_35101753_17798.cpp:7:1: error: 'intdata' does not name a type
 intdata[Max2];
 ^
0_0_35101753_17798.cpp: In function 'int intmain()':
0_0_35101753_17798.cpp:10:1: error: 'intn' was not declared in this scope
 intn;
 ^
0_0_35101753_17798.cpp:11:7: error: 'cin' was not declared in this scope
 while(cin>>n)
       ^
0_0_35101753_17798.cpp:11:7: note: suggested alternative:
In file included from 0_0_35101753_17798.cpp:1:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^
0_0_35101753_17798.cpp:11:12: error: 'n' was not declared in this scope
 while(cin>>n)
            ^
0_0_35101753_17798.cpp:13:1: error: 'intsum' was not declared in this scope
 intsum=0;
 ^
0_0_35101753_17798.cpp:14:1: error: 'num' was not declared in this scope
 num[0]=1;
 ^
0_0_35101753_17798.cpp:15:5: error: 'inti' was not declared in this scope
 for(inti=1;i<=n;i++)
     ^
0_0_35101753_17798.cpp:15:12: error: 'i' was not declared in this scope
 for(inti=1;i<=n;i++)
            ^
0_0_35101753_17798.cpp:17:6: error: 'data' was not declared in this scope
 cin>>data[i];
      ^
0_0_35101753_17798.cpp:18:1: error: 'sum' was not declared in this scope
 sum+=data[i];
 ^
0_0_35101753_17798.cpp:20:5: error: 'i' was not declared in this scope
 for(i=0;i<=sum;++i)
     ^
0_0_35101753_17798.cpp:20:12: error: 'sum' was not declared in this scope
 for(i=0;i<=sum;++i)
            ^
0_0_35101753_17798.cpp:23:1: error: 'temp' was not declared in this scope
 temp[i]=0;
 ^
0_0_35101753_17798.cpp:27:5: error: 'i' was not declared in this scope
 for(i=1;i<=n;i++)
     ^
0_0_35101753_17798.cpp:29:5: error: 'intj' was not declared in this scope
 for(intj=0;j+data[i]<=sum;j++)
     ^
0_0_35101753_17798.cpp:29:12: error: 'j' was not declared in this scope
 for(intj=0;j+data[i]<=sum;j++)
            ^
0_0_35101753_17798.cpp:29:14: error: 'data' was not declared in this scope
 for(intj=0;j+data[i]<=sum;j++)
              ^
0_0_35101753_17798.cpp:29:23: error: 'sum' was not declared in this scope
 for(intj=0;j+data[i]<=sum;j++)
                       ^
0_0_35101753_17798.cpp:33:1: error: 'temp' was not declared in this scope
 temp[j]=1;
 ^
0_0_35101753_17798.cpp:38:5: error: 'j' was not declared in this scope
 for(j=0;j<=sum;j++)
     ^
0_0_35101753_17798.cpp:38:12: error: 'sum' was not declared in this scope
 for(j=0;j<=sum;j++)
            ^
0_0_35101753_17798.cpp:40:8: error: 'temp' was not declared in this scope
 num[j]=temp[j];
        ^
0_0_35101753_17798.cpp:44:1: error: 'intstep' was not declared in this scope
 intstep=0;
 ^
0_0_35101753_17798.cpp:45:1: error: 'intj' was not declared in this scope
 intj;
 ^
0_0_35101753_17798.cpp:46:5: error: 'i' was not declared in this scope
 for(i=1,j=0;i<=sum;i++)
     ^
0_0_35101753_17798.cpp:46:9: error: 'j' was not declared in this scope
 for(i=1,j=0;i<=sum;i++)
         ^
0_0_35101753_17798.cpp:46:16: error: 'sum' was not declared in this scope
 for(i=1,j=0;i<=sum;i++)
                ^
0_0_35101753_17798.cpp:50:1: error: 'step' was not declared in this scope
 step++;
 ^
0_0_35101753_17798.cpp:51:1: error: 'temp' was not declared in this scope
 temp[j]=i;
 ^
0_0_35101753_17798.cpp:55:1: error: 'cout' was not declared in this scope
 cout<<step<<endl;
 ^
0_0_35101753_17798.cpp:55:1: note: suggested alternative:
In file included from 0_0_35101753_17798.cpp:1:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
0_0_35101753_17798.cpp:55:7: error: 'step' was not declared in this scope
 cout<<step<<endl;
       ^
0_0_35101753_17798.cpp:55:13: error: 'endl' was not declared in this scope
 cout<<step<<endl;
             ^
0_0_35101753_17798.cpp:55:13: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39:0,
                 from 0_0_35101753_17798.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:564:5: note:   'std::endl'
     endl(basic_ostream<_CharT, _Traits>& __os)
     ^
0_0_35101753_17798.cpp:58:5: error: 'i' was not declared in this scope
 for(i=0;i<j;i++)
     ^
0_0_35101753_17798.cpp:58:11: error: 'j' was not declared in this scope
 for(i=0;i<j;i++)
           ^
0_0_35101753_17798.cpp:62:7: error: 'temp' was not declared in this scope
 cout<<temp[i];
       ^
0_0_35101753_17798.cpp:67:1: error: 'return0' was not declared in this scope
 return0;
 ^


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-09-29 05:36:32, Gzip enabled