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_21019390_19218\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_21019390_19218\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_21019390_19218\Main.java:2: 错误: 非法字符: '#'
#include <string>
^
0_0_21019390_19218\Main.java:3: 错误: 非法字符: '#'
#include <map>
^
0_0_21019390_19218\Main.java:5: 错误: 非法字符: '#'
#define STRLEN 1000
^
0_0_21019390_19218\Main.java:5: 错误: 需要class, interface或enum
#define STRLEN 1000
        ^
0_0_21019390_19218\Main.java:13: 错误: 需要class, interface或enum
   break;
   ^
0_0_21019390_19218\Main.java:14: 错误: 需要class, interface或enum
case '=':
^
0_0_21019390_19218\Main.java:16: 错误: 需要class, interface或enum
   break;
   ^
0_0_21019390_19218\Main.java:17: 错误: 需要class, interface或enum
case '+':
^
0_0_21019390_19218\Main.java:19: 错误: 需要class, interface或enum
   break;
   ^
0_0_21019390_19218\Main.java:20: 错误: 需要class, interface或enum
case '-':
^
0_0_21019390_19218\Main.java:22: 错误: 需要class, interface或enum
   break;
   ^
0_0_21019390_19218\Main.java:23: 错误: 需要class, interface或enum
case '*':
^
0_0_21019390_19218\Main.java:25: 错误: 需要class, interface或enum
   break;
   ^
0_0_21019390_19218\Main.java:26: 错误: 需要class, interface或enum
case '/':
^
0_0_21019390_19218\Main.java:28: 错误: 需要class, interface或enum
   break;
   ^
0_0_21019390_19218\Main.java:29: 错误: 需要class, interface或enum
}
^
0_0_21019390_19218\Main.java:35: 错误: 需要class, interface或enum
}
^
0_0_21019390_19218\Main.java:47: 错误: 需要class, interface或enum
else
^
0_0_21019390_19218\Main.java:49: 错误: 需要class, interface或enum
}
^
0_0_21019390_19218\Main.java:54: 错误: 需要class, interface或enum
int len = strlen(STR);
^
0_0_21019390_19218\Main.java:55: 错误: 需要class, interface或enum
bool flag = false;
^
0_0_21019390_19218\Main.java:56: 错误: 需要class, interface或enum
for (; i<len; i++)
^
0_0_21019390_19218\Main.java:56: 错误: 需要class, interface或enum
for (; i<len; i++)
       ^
0_0_21019390_19218\Main.java:56: 错误: 需要class, interface或enum
for (; i<len; i++)
              ^
0_0_21019390_19218\Main.java:63: 错误: 需要class, interface或enum
     flag = true;
     ^
0_0_21019390_19218\Main.java:64: 错误: 需要class, interface或enum
    }
    ^
0_0_21019390_19218\Main.java:66: 错误: 需要class, interface或enum
   } else {
   ^
0_0_21019390_19218\Main.java:68: 错误: 需要class, interface或enum
   }
   ^
0_0_21019390_19218\Main.java:71: 错误: 需要class, interface或enum
s = i;
^
0_0_21019390_19218\Main.java:72: 错误: 需要class, interface或enum
return flag;
^
0_0_21019390_19218\Main.java:73: 错误: 需要class, interface或enum
}
^
0_0_21019390_19218\Main.java:79: 错误: 需要class, interface或enum
else
^
0_0_21019390_19218\Main.java:81: 错误: 需要class, interface或enum
}
^
0_0_21019390_19218\Main.java:88: 错误: 需要class, interface或enum
   break;
   ^
0_0_21019390_19218\Main.java:89: 错误: 需要class, interface或enum
case '-':
^
0_0_21019390_19218\Main.java:91: 错误: 需要class, interface或enum
   break;
   ^
0_0_21019390_19218\Main.java:92: 错误: 需要class, interface或enum
case '*':
^
0_0_21019390_19218\Main.java:94: 错误: 需要class, interface或enum
   break;
   ^
0_0_21019390_19218\Main.java:95: 错误: 需要class, interface或enum
case '/':
^
0_0_21019390_19218\Main.java:97: 错误: 需要class, interface或enum
   break;
   ^
0_0_21019390_19218\Main.java:98: 错误: 需要class, interface或enum
}
^
0_0_21019390_19218\Main.java:103: 错误: 需要class, interface或enum
int i;
^
0_0_21019390_19218\Main.java:104: 错误: 需要class, interface或enum
for (i = len-1; i>=0; i--)
^
0_0_21019390_19218\Main.java:104: 错误: 需要class, interface或enum
for (i = len-1; i>=0; i--)
                ^
0_0_21019390_19218\Main.java:104: 错误: 需要class, interface或enum
for (i = len-1; i>=0; i--)
                      ^
0_0_21019390_19218\Main.java:107: 错误: 需要class, interface或enum
   else
   ^
0_0_21019390_19218\Main.java:109: 错误: 需要class, interface或enum
}
^
0_0_21019390_19218\Main.java:113: 错误: 需要class, interface或enum
char OperStack[STRLEN];
^
0_0_21019390_19218\Main.java:114: 错误: 需要class, interface或enum
char NumStack[STRLEN][100];
^
0_0_21019390_19218\Main.java:115: 错误: 需要class, interface或enum
char ans[STRLEN];
^
0_0_21019390_19218\Main.java:116: 错误: 需要class, interface或enum
char PutToNumStack[STRLEN];
^
0_0_21019390_19218\Main.java:117: 错误: 需要class, interface或enum
int OperTop, NumTop, StrPos;
^
0_0_21019390_19218\Main.java:119: 错误: 需要class, interface或enum
char cTopOper;
^
0_0_21019390_19218\Main.java:121: 错误: 需要class, interface或enum
char a[STRLEN], b[STRLEN];
^
0_0_21019390_19218\Main.java:123: 错误: 需要class, interface或enum
int NumA, NumB, NumC;
^
0_0_21019390_19218\Main.java:125: 错误: 需要class, interface或enum
char sNumC[STRLEN];
^
0_0_21019390_19218\Main.java:127: 错误: 需要class, interface或enum
map<string, int> t_map;
^
0_0_21019390_19218\Main.java:128: 错误: 需要class, interface或enum
int len;
^
0_0_21019390_19218\Main.java:129: 错误: 需要class, interface或enum
bool isFuShu;
^
0_0_21019390_19218\Main.java:130: 错误: 需要class, interface或enum
while (cin.getline(&STR[1], STRLEN))
^
0_0_21019390_19218\Main.java:134: 错误: 需要class, interface或enum
   memset(NumStack, 0, sizeof(NumStack));
   ^
0_0_21019390_19218\Main.java:135: 错误: 需要class, interface或enum
   memset(ans, 0, sizeof(ans));
   ^
0_0_21019390_19218\Main.java:136: 错误: 需要class, interface或enum
   isFuShu = false;
   ^
0_0_21019390_19218\Main.java:138: 错误: 需要class, interface或enum
   STR[0] = '(';
   ^
0_0_21019390_19218\Main.java:140: 错误: 需要class, interface或enum
   GetTrueStr(STR);
   ^
0_0_21019390_19218\Main.java:141: 错误: 需要class, interface或enum
   len = strlen(STR);
   ^
0_0_21019390_19218\Main.java:143: 错误: 需要class, interface或enum
   STR[len++] = ')';
   ^
0_0_21019390_19218\Main.java:144: 错误: 需要class, interface或enum
   STR[len] = 0x00;
   ^
0_0_21019390_19218\Main.java:147: 错误: 需要class, interface或enum
   StrPos = OperTop = NumTop = 0;
   ^
0_0_21019390_19218\Main.java:148: 错误: 需要class, interface或enum
   while (StrPos < len)
   ^
0_0_21019390_19218\Main.java:157: 错误: 需要class, interface或enum
      continue;
      ^
0_0_21019390_19218\Main.java:158: 错误: 需要class, interface或enum
     }
     ^
0_0_21019390_19218\Main.java:163: 错误: 需要class, interface或enum
     }
     ^
0_0_21019390_19218\Main.java:174: 错误: 需要class, interface或enum
        strcpy(a, NumStack[--NumTop]);
        ^
0_0_21019390_19218\Main.java:175: 错误: 需要class, interface或enum
        if (IsNum(b))
        ^
0_0_21019390_19218\Main.java:177: 错误: 需要class, interface或enum
        else
        ^
0_0_21019390_19218\Main.java:179: 错误: 需要class, interface或enum
        t_map[a] = NumB;
        ^
0_0_21019390_19218\Main.java:181: 错误: 需要class, interface或enum
        strcpy(NumStack[NumTop++], b);
        ^
0_0_21019390_19218\Main.java:182: 错误: 需要class, interface或enum
       } else {
       ^
0_0_21019390_19218\Main.java:184: 错误: 需要class, interface或enum
        strcpy(a, NumStack[--NumTop]);
        ^
0_0_21019390_19218\Main.java:186: 错误: 需要class, interface或enum
        if (IsNum(b))
        ^
0_0_21019390_19218\Main.java:188: 错误: 需要class, interface或enum
        else
        ^
0_0_21019390_19218\Main.java:190: 错误: 需要class, interface或enum
        if (IsNum(a))
        ^
0_0_21019390_19218\Main.java:192: 错误: 需要class, interface或enum
        else
        ^
0_0_21019390_19218\Main.java:195: 错误: 需要class, interface或enum
        NumC = Calc(NumA, NumB, cTopOper);
        ^
0_0_21019390_19218\Main.java:196: 错误: 需要class, interface或enum
        sprintf(sNumC, "%d", NumC);
        ^
0_0_21019390_19218\Main.java:198: 错误: 需要class, interface或enum
        strcpy(NumStack[NumTop++], sNumC);
        ^
0_0_21019390_19218\Main.java:199: 错误: 需要class, interface或enum
       }
       ^
0_0_21019390_19218\Main.java:206: 错误: 需要class, interface或enum
     } else {
     ^
0_0_21019390_19218\Main.java:211: 错误: 需要class, interface或enum
       strcpy(a, NumStack[--NumTop]);
       ^
0_0_21019390_19218\Main.java:213: 错误: 需要class, interface或enum
       if (IsNum(b))
       ^
0_0_21019390_19218\Main.java:215: 错误: 需要class, interface或enum
       else
       ^
0_0_21019390_19218\Main.java:217: 错误: 需要class, interface或enum
       if (IsNum(a))
       ^
0_0_21019390_19218\Main.java:219: 错误: 需要class, interface或enum
       else
       ^
0_0_21019390_19218\Main.java:222: 错误: 需要class, interface或enum
       cTopOper = OperStack[--OperTop];
       ^
0_0_21019390_19218\Main.java:224: 错误: 需要class, interface或enum
       NumC = Calc(NumA, NumB, cTopOper);
       ^
0_0_21019390_19218\Main.java:225: 错误: 需要class, interface或enum
       sprintf(sNumC, "%d", NumC);
       ^
0_0_21019390_19218\Main.java:227: 错误: 需要class, interface或enum
       strcpy(NumStack[NumTop++], sNumC);
       ^
100 个错误


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 21:00:29, Gzip enabled