Here is my code in C++ for this problem:
#include <iostream>
#include <string>
using namespace std;
void execute(char cod);
char table[252][252], code;
int m, n, index_1, index_2;
int main()
{
for(index_1 = 0; index_1 <= 251 ; index_1++) for(index_2 = 0; index_2 <= 251; index_2++) table[index ...
Search found 3 matches
- Thu Sep 01, 2011 9:54 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10267 - Graphical Editor
- Replies: 190
- Views: 77989
- Tue Sep 07, 2010 1:57 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10142 - Australian Voting
- Replies: 82
- Views: 46292
Re: 10142 - Australian Voting
Well, I got solved... I had just a mistake in what had to do with updating the number of ballots... Variable s in my code isn't properly updated. And I had to add some code to output blank lines so as to get solved instead of presentation error...
- Mon Sep 06, 2010 2:12 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10142 - Australian Voting
- Replies: 82
- Views: 46292
Re: 10142 - Australian Voting
I have tried every input appearing on this forum, and I get the expected output, but I still get wrong answer on PC! Could you please provide me some input to find my mistakes?
program avot;
type
candidate=record
name:string[80];
u:integer;
res:real;
end;
var
o,l,p,s,num,cases,index ...
program avot;
type
candidate=record
name:string[80];
u:integer;
res:real;
end;
var
o,l,p,s,num,cases,index ...