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_29042027_4450.cpp:6:2: error: stray '#' in program
  int n,i,len,b;
  ^
0_0_29042027_4450.cpp:7:2: error: stray '#' in program
  char a[50];
  ^
0_0_29042027_4450.cpp:8:2: error: stray '#' in program
  cin>>n;
  ^
0_0_29042027_4450.cpp:9:2: error: stray '#' in program
     getchar();
  ^
0_0_29042027_4450.cpp:9:8: error: stray '#' in program
     getchar();
        ^
0_0_29042027_4450.cpp:9:14: error: stray '#' in program
     getchar();
              ^
0_0_29042027_4450.cpp:10:2: error: stray '#' in program
  for(i=0;i<n;i++)
  ^
0_0_29042027_4450.cpp:11:2: error: stray '#' in program
  {
  ^
0_0_29042027_4450.cpp:12:2: error: stray '#' in program
   cin.getline(a,50,'\n');
  ^
0_0_29042027_4450.cpp:12:8: error: stray '#' in program
   cin.getline(a,50,'\n');
        ^
0_0_29042027_4450.cpp:13:2: error: stray '#' in program
   len=strlen(a);
  ^
0_0_29042027_4450.cpp:13:8: error: stray '#' in program
   len=strlen(a);
        ^
0_0_29042027_4450.cpp:14:2: error: stray '#' in program
   if(a[0]=='_' ||(a[0]>='A' && a[0]<='Z') || (a[0]>='a' && a[0]<='z'))
  ^
0_0_29042027_4450.cpp:14:8: error: stray '#' in program
   if(a[0]=='_' ||(a[0]>='A' && a[0]<='Z') || (a[0]>='a' && a[0]<='z'))
        ^
0_0_29042027_4450.cpp:15:2: error: stray '#' in program
   {
  ^
0_0_29042027_4450.cpp:15:8: error: stray '#' in program
   {
        ^
0_0_29042027_4450.cpp:16:2: error: stray '#' in program
    for(b=1;b<len;b++)
  ^
0_0_29042027_4450.cpp:16:8: error: stray '#' in program
    for(b=1;b<len;b++)
        ^
0_0_29042027_4450.cpp:16:14: error: stray '#' in program
    for(b=1;b<len;b++)
              ^
0_0_29042027_4450.cpp:17:2: error: stray '#' in program
    {
  ^
0_0_29042027_4450.cpp:17:8: error: stray '#' in program
    {
        ^
0_0_29042027_4450.cpp:17:14: error: stray '#' in program
    {
              ^
0_0_29042027_4450.cpp:18:2: error: stray '#' in program
     if((a[b]=='_' )||(a[b]>='A' && a[b]<='Z') || (a[b]>='a' && a[b]<='z') ||(a[b]>='0' && a[b]<='9'))
  ^
0_0_29042027_4450.cpp:18:8: error: stray '#' in program
     if((a[b]=='_' )||(a[b]>='A' && a[b]<='Z') || (a[b]>='a' && a[b]<='z') ||(a[b]>='0' && a[b]<='9'))
        ^
0_0_29042027_4450.cpp:18:14: error: stray '#' in program
     if((a[b]=='_' )||(a[b]>='A' && a[b]<='Z') || (a[b]>='a' && a[b]<='z') ||(a[b]>='0' && a[b]<='9'))
              ^
0_0_29042027_4450.cpp:18:20: error: stray '#' in program
     if((a[b]=='_' )||(a[b]>='A' && a[b]<='Z') || (a[b]>='a' && a[b]<='z') ||(a[b]>='0' && a[b]<='9'))
                    ^
0_0_29042027_4450.cpp:19:2: error: stray '#' in program
      continue;
  ^
0_0_29042027_4450.cpp:19:8: error: stray '#' in program
      continue;
        ^
0_0_29042027_4450.cpp:19:14: error: stray '#' in program
      continue;
              ^
0_0_29042027_4450.cpp:19:20: error: stray '#' in program
      continue;
                    ^
0_0_29042027_4450.cpp:19:26: error: stray '#' in program
      continue;
                          ^
0_0_29042027_4450.cpp:20:2: error: stray '#' in program
     else
  ^
0_0_29042027_4450.cpp:20:8: error: stray '#' in program
     else
        ^
0_0_29042027_4450.cpp:20:14: error: stray '#' in program
     else
              ^
0_0_29042027_4450.cpp:20:20: error: stray '#' in program
     else
                    ^
0_0_29042027_4450.cpp:21:2: error: stray '#' in program
      break;
  ^
0_0_29042027_4450.cpp:21:8: error: stray '#' in program
      break;
        ^
0_0_29042027_4450.cpp:21:14: error: stray '#' in program
      break;
              ^
0_0_29042027_4450.cpp:21:20: error: stray '#' in program
      break;
                    ^
0_0_29042027_4450.cpp:21:26: error: stray '#' in program
      break;
                          ^
0_0_29042027_4450.cpp:22:2: error: stray '#' in program
    }
  ^
0_0_29042027_4450.cpp:22:8: error: stray '#' in program
    }
        ^
0_0_29042027_4450.cpp:22:14: error: stray '#' in program
    }
              ^
0_0_29042027_4450.cpp:23:2: error: stray '#' in program
    if(b==len)
  ^
0_0_29042027_4450.cpp:23:8: error: stray '#' in program
    if(b==len)
        ^
0_0_29042027_4450.cpp:23:14: error: stray '#' in program
    if(b==len)
              ^
0_0_29042027_4450.cpp:24:2: error: stray '#' in program
     cout<<"yes"<<endl;
  ^
0_0_29042027_4450.cpp:24:8: error: stray '#' in program
     cout<<"yes"<<endl;
        ^
0_0_29042027_4450.cpp:24:14: error: stray '#' in program
     cout<<"yes"<<endl;
              ^
0_0_29042027_4450.cpp:24:20: error: stray '#' in program
     cout<<"yes"<<endl;
                    ^
0_0_29042027_4450.cpp:25:2: error: stray '#' in program
    else
  ^
0_0_29042027_4450.cpp:25:8: error: stray '#' in program
    else
        ^
0_0_29042027_4450.cpp:25:14: error: stray '#' in program
    else
              ^
0_0_29042027_4450.cpp:26:2: error: stray '#' in program
     cout<<"no"<<endl;
  ^
0_0_29042027_4450.cpp:26:8: error: stray '#' in program
     cout<<"no"<<endl;
        ^
0_0_29042027_4450.cpp:26:14: error: stray '#' in program
     cout<<"no"<<endl;
              ^
0_0_29042027_4450.cpp:26:20: error: stray '#' in program
     cout<<"no"<<endl;
                    ^
0_0_29042027_4450.cpp:27:2: error: stray '#' in program
   }
  ^
0_0_29042027_4450.cpp:27:8: error: stray '#' in program
   }
        ^
0_0_29042027_4450.cpp:28:2: error: stray '#' in program
   else
  ^
0_0_29042027_4450.cpp:28:8: error: stray '#' in program
   else
        ^
0_0_29042027_4450.cpp:29:2: error: stray '#' in program
    cout<<"no"<<endl;
  ^
0_0_29042027_4450.cpp:29:8: error: stray '#' in program
    cout<<"no"<<endl;
        ^
0_0_29042027_4450.cpp:29:14: error: stray '#' in program
    cout<<"no"<<endl;
              ^
0_0_29042027_4450.cpp:30:2: error: stray '#' in program
  }
  ^
0_0_29042027_4450.cpp:31:2: error: stray '#' in program
  return 0;
  ^
0_0_29042027_4450.cpp: In function 'int main()':
0_0_29042027_4450.cpp:6:3: error: lvalue required as unary '&' operand
  int n,i,len,b;
   ^
0_0_29042027_4450.cpp:7:3: error: lvalue required as unary '&' operand
  char a[50];
   ^
0_0_29042027_4450.cpp:8:3: error: lvalue required as unary '&' operand
  cin>>n;
   ^
0_0_29042027_4450.cpp:9:3: error: lvalue required as unary '&' operand
     getchar();
   ^
0_0_29042027_4450.cpp:9:9: error: lvalue required as unary '&' operand
     getchar();
         ^
0_0_29042027_4450.cpp:9:15: error: lvalue required as unary '&' operand
     getchar();
               ^
0_0_29042027_4450.cpp:10:3: error: lvalue required as unary '&' operand
  for(i=0;i<n;i++)
   ^
0_0_29042027_4450.cpp:11:3: error: lvalue required as unary '&' operand
  {
   ^
0_0_29042027_4450.cpp:12:3: error: lvalue required as unary '&' operand
   cin.getline(a,50,'\n');
   ^
0_0_29042027_4450.cpp:12:9: error: lvalue required as unary '&' operand
   cin.getline(a,50,'\n');
         ^
0_0_29042027_4450.cpp:13:3: error: lvalue required as unary '&' operand
   len=strlen(a);
   ^
0_0_29042027_4450.cpp:13:9: error: lvalue required as unary '&' operand
   len=strlen(a);
         ^
0_0_29042027_4450.cpp:13:25: error: 'strlen' was not declared in this scope
   len=strlen(a);
                         ^
0_0_29042027_4450.cpp:14:3: error: lvalue required as unary '&' operand
   if(a[0]=='_' ||(a[0]>='A' && a[0]<='Z') || (a[0]>='a' && a[0]<='z'))
   ^
0_0_29042027_4450.cpp:14:9: error: lvalue required as unary '&' operand
   if(a[0]=='_' ||(a[0]>='A' && a[0]<='Z') || (a[0]>='a' && a[0]<='z'))
         ^
0_0_29042027_4450.cpp:15:3: error: lvalue required as unary '&' operand
   {
   ^
0_0_29042027_4450.cpp:15:9: error: lvalue required as unary '&' operand
   {
         ^
0_0_29042027_4450.cpp:16:3: error: lvalue required as unary '&' operand
    for(b=1;b<len;b++)
   ^
0_0_29042027_4450.cpp:16:9: error: lvalue required as unary '&' operand
    for(b=1;b<len;b++)
         ^
0_0_29042027_4450.cpp:16:15: error: lvalue required as unary '&' operand
    for(b=1;b<len;b++)
               ^
0_0_29042027_4450.cpp:17:3: error: lvalue required as unary '&' operand
    


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-19 01:41:38, Gzip enabled