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_25043395_24152.cpp:15:2: error: stray '#' in program
  
  ^
0_0_25043395_24152.cpp:17:2: error: stray '#' in program
  
  ^
0_0_25043395_24152.cpp:21:2: error: stray '#' in program
  
  ^
0_0_25043395_24152.cpp:31:2: error: stray '#' in program
  // cout << at << " " << s[at] << endl;
  ^
0_0_25043395_24152.cpp:32:2: error: stray '#' in program
  if(good != 1) return 0;
  ^
0_0_25043395_24152.cpp:33:2: error: stray '#' in program
  if(at >= len)
  ^
0_0_25043395_24152.cpp:34:2: error: stray '#' in program
  {
  ^
0_0_25043395_24152.cpp:35:2: error: stray '#' in program
  good = -2;
  ^
0_0_25043395_24152.cpp:36:2: error: stray '#' in program
  }
  ^
0_0_25043395_24152.cpp:37:2: error: stray '#' in program
  else if(s[at] >= 'a' && s[at] <= 'z')
  ^
0_0_25043395_24152.cpp:38:2: error: stray '#' in program
  {
  ^
0_0_25043395_24152.cpp:39:2: error: stray '#' in program
  return value[val[s[at++]]];
  ^
0_0_25043395_24152.cpp:40:2: error: stray '#' in program
  }
  ^
0_0_25043395_24152.cpp:41:2: error: stray '#' in program
  else if(s[at] >= 'A' && s[at] <= 'Z')
  ^
0_0_25043395_24152.cpp:42:2: error: stray '#' in program
  {
  ^
0_0_25043395_24152.cpp:43:2: error: stray '#' in program
  at++;
  ^
0_0_25043395_24152.cpp:44:2: error: stray '#' in program
  int x, y;
  ^
0_0_25043395_24152.cpp:45:2: error: stray '#' in program
  switch(s[at - 1])
  ^
0_0_25043395_24152.cpp:46:2: error: stray '#' in program
  {
  ^
0_0_25043395_24152.cpp:47:2: error: stray '#' in program
  case 'C': x = eva(); y = eva(); if(x && !y) return 0; else return 1;
  ^
0_0_25043395_24152.cpp:48:2: error: stray '#' in program
  case 'N': x = eva(); return x ^ 1;
  ^
0_0_25043395_24152.cpp:49:2: error: stray '#' in program
  case 'K': x = eva(); y = eva(); return x & y;
  ^
0_0_25043395_24152.cpp:50:2: error: stray '#' in program
  case 'A': x = eva(); y = eva(); return x | y;
  ^
0_0_25043395_24152.cpp:51:2: error: stray '#' in program
  case 'D': x = eva(); y = eva(); return !(x & y);
  ^
0_0_25043395_24152.cpp:52:2: error: stray '#' in program
  case 'E': x = eva(); y = eva(); return (x == y);
  ^
0_0_25043395_24152.cpp:53:2: error: stray '#' in program
  case 'J': x = eva(); y = eva(); return x ^ y;
  ^
0_0_25043395_24152.cpp:54:2: error: stray '#' in program
  default: good = -1; break;
  ^
0_0_25043395_24152.cpp:55:2: error: stray '#' in program
  }
  ^
0_0_25043395_24152.cpp:56:2: error: stray '#' in program
  }
  ^
0_0_25043395_24152.cpp:57:2: error: stray '#' in program
  else
  ^
0_0_25043395_24152.cpp:58:2: error: stray '#' in program
  {
  ^
0_0_25043395_24152.cpp:59:2: error: stray '#' in program
  good = -1;
  ^
0_0_25043395_24152.cpp:60:2: error: stray '#' in program
  }
  ^
0_0_25043395_24152.cpp:62:2: error: stray '#' in program
  
  ^
0_0_25043395_24152.cpp:65:2: error: stray '#' in program
  while(cin >> s)
  ^
0_0_25043395_24152.cpp:66:2: error: stray '#' in program
  {
  ^
0_0_25043395_24152.cpp:67:2: error: stray '#' in program
  good = 1;
  ^
0_0_25043395_24152.cpp:68:2: error: stray '#' in program
  len = s.length();
  ^
0_0_25043395_24152.cpp:69:2: error: stray '#' in program
  n = 0;
  ^
0_0_25043395_24152.cpp:70:2: error: stray '#' in program
  val.clear();
  ^
0_0_25043395_24152.cpp:71:2: error: stray '#' in program
  for(int i = 0; i < len; i++ )
  ^
0_0_25043395_24152.cpp:72:2: error: stray '#' in program
  {
  ^
0_0_25043395_24152.cpp:73:2: error: stray '#' in program
  if(s[i] >= 'a' && s[i] <= 'z' && val.find(s[i]) == val.end())
  ^
0_0_25043395_24152.cpp:74:2: error: stray '#' in program
  {
  ^
0_0_25043395_24152.cpp:75:2: error: stray '#' in program
  val[s[i]] = n++;
  ^
0_0_25043395_24152.cpp:76:2: error: stray '#' in program
  }
  ^
0_0_25043395_24152.cpp:77:2: error: stray '#' in program
  }
  ^
0_0_25043395_24152.cpp:78:2: error: stray '#' in program
  
  ^
0_0_25043395_24152.cpp:79:2: error: stray '#' in program
  int ct = 0, cn = 0;
  ^
0_0_25043395_24152.cpp:80:2: error: stray '#' in program
  for(int i = 0; i < 1<<n && good == 1; i++ )
  ^
0_0_25043395_24152.cpp:81:2: error: stray '#' in program
  {
  ^
0_0_25043395_24152.cpp:82:2: error: stray '#' in program
  for(int j = 0; j < n; j++ )
  ^
0_0_25043395_24152.cpp:83:2: error: stray '#' in program
  {
  ^
0_0_25043395_24152.cpp:84:2: error: stray '#' in program
  if(i & (1<<j))
  ^
0_0_25043395_24152.cpp:85:2: error: stray '#' in program
  value[j] = 1;
  ^
0_0_25043395_24152.cpp:86:2: error: stray '#' in program
  else
  ^
0_0_25043395_24152.cpp:87:2: error: stray '#' in program
  value[j] = 0;
  ^
0_0_25043395_24152.cpp:88:2: error: stray '#' in program
  }
  ^
0_0_25043395_24152.cpp:89:2: error: stray '#' in program
  at = 0;
  ^
0_0_25043395_24152.cpp:90:2: error: stray '#' in program
  int res = eva();
  ^
0_0_25043395_24152.cpp:91:2: error: stray '#' in program
  if(good == 1 && at < len) good = -3;
  ^
0_0_25043395_24152.cpp:92:2: error: stray '#' in program
  if(res) ct++;
  ^
0_0_25043395_24152.cpp:93:2: error: stray '#' in program
  else cn++;
  ^
0_0_25043395_24152.cpp:94:2: error: stray '#' in program
  }
  ^
0_0_25043395_24152.cpp:95:2: error: stray '#' in program
  
  ^
0_0_25043395_24152.cpp:96:2: error: stray '#' in program
  cout << s << " is ";
  ^
0_0_25043395_24152.cpp:97:2: error: stray '#' in program
  if(good == 1)
  ^
0_0_25043395_24152.cpp:98:2: error: stray '#' in program
  {
  ^
0_0_25043395_24152.cpp:99:2: error: stray '#' in program
  cout << "valid: ";
  ^
0_0_25043395_24152.cpp:100:2: error: stray '#' in program
  if(ct && cn) cout << "contingent" << endl;
  ^
0_0_25043395_24152.cpp:101:2: error: stray '#' in program
  else if(ct) cout << "tautology" << endl;
  ^
0_0_25043395_24152.cpp:102:2: error: stray '#' in program
  else cout << "contradiction" << endl;
  ^
0_0_25043395_24152.cpp:103:2: error: stray '#' in program
  }
  ^
0_0_25043395_24152.cpp:104:2: error: stray '#' in program
  else if(good == -1)
  ^
0_0_25043395_24152.cpp:105:2: error: stray '#' in program
  {
  ^
0_0_25043395_24152.cpp:106:2: error: stray '#' in program
  cout << "invalid: invalid character" << endl;
  ^
0_0_25043395_24152.cpp:107:2: error: stray '#' in program
  }
  ^
0_0_25043395_24152.cpp:108:2: error: stray '#' in program
  else if(good == -2)
  ^
0_0_25043395_24152.cpp:109:2: error: stray '#' in program
  {
  ^
0_0_25043395_24152.cpp:110:2: error: stray '#' in program
  cout << "invalid: insufficient operands" << endl;
  ^
0_0_25043395_24152.cpp:111:2: error: stray '#' in program
  }
  ^
0_0_25043395_24152.cpp:112:2: error: stray '#' in program
  else
  ^
0_0_25043395_24152.cpp:113:2: error: stray '#' in program
  {
  ^
0_0_25043395_24152.cpp:114:2: error: stray '#' in program
  cout << "invalid: extraneous text" << endl;
  ^
0_0_25043395_24152.cpp:115:2: error: stray '#' in program
  }
  ^
0_0_25043395_24152.cpp:116:2: error: stray '#' in program
  }
  ^
0_0_25043395_24152.cpp:15:3: error: expected unqualified-id before numeric constant
  
   ^
0_0_25043395_24152.cpp:15:3: error: expected constructor, destructor, or type conversion before numeric constant
0_0_25043395_24152.cpp:17:3: error: expected unqualified-id before numeric constant
  
   ^
0_0_25043395_24152.cpp:17:3: error: expected constructor, destructor, or type conversion before numeric constant
0_0_25043395_24152.cpp:21:3: error: expected unqualified-id before numeric constant
  
   ^
0_0_25043395_24152.cpp:21:3: error: expected constructor, destructor, or type conversion before numeric constant
0_0_25043395_24152.cpp: In function 'int eva()':
0_0_25043395_24152.cpp:31:3: error: lvalue required as unary '&' operand
  // cout << at << " " << s[at] << endl;
   ^
0_0_25043395_24152.cpp:32:3: error: lvalue required as unary '&' operand
  if(good != 1) return 0;
   ^
0_0_25043395_24152.cpp:33:3: error: lvalue required as unary '&' operand
  if(at >= len)
   ^
0_0_25043395_24152.cpp:34:3: error: lvalue required as unary '&' operand
  {
   ^
0_0_25043395_24152.cpp:35:3: error: lvalue required as unary '&' operand
  good = -2;
   ^
0_0_25043395_24152.cpp:36:3: error: lvalue required as unary '&' operand
  }
   ^
0_0_25043395_24152.cpp:37:3: error: lvalue required as unary '&' operand
  else if(s[at] >= 'a' && s[at] <= 'z')
   ^
0_0_25043395_24152.cpp:37:7: error: 'else' without a previous 'if'
  else if(s[at] >= 'a' && s[at] <= 'z')
       ^
0_0_25043395_24152.cpp:38:3: error: lvalue required as unary '&' operand
  {
   ^
0_0_25043395_24152.cpp:39:3: error: lvalue required as unary '&' operand
  return value[val[s[at++]]];
   ^
0_0_25043395_24152.cpp:40: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-12-02 09:20:49, Gzip enabled