Search found 1 match

by atulshanbhag
Mon Sep 14, 2015 10:06 pm
Forum: Volume 1 (100-199)
Topic: 119 - Greedy Gift Givers
Replies: 145
Views: 47241

Re: 119 - Greedy Gift Givers

Please tell me why this code is getting WA?

#include <stdio.h>
#include <string.h>

int main ()
{
long np, i, money, person, divide, c, flag = 0;
char giver [20], receiver [20];

while (scanf ("%ld", &np) != EOF) {

struct friends {
int spend;
int receive;
char name [20];
} A [12] = {0 ...

Go to advanced search