Search found 1 match

by waliliadai
Sun Jul 20, 2008 8:03 am
Forum: Volume 7 (700-799)
Topic: 727 - Equation
Replies: 156
Views: 57520

Re: 727 - Equation

I tried all test cases on the thread, but I still got WA.
What's wrong with my code? :cry:

#include<iostream>
using namespace std;

int main(){
char t, stack[50+1] = {'@'};
int n, pri[255] = {}, top;
pri['@'] = -1, pri['+'] = pri['-'] = 1, pri['*'] = pri['/'] = 2,
pri['('] = 4, pri[')'] = 0 ...

Go to advanced search