ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1000. A+B Problem

problems with C++ compiler on timus
Posted by .Net, Java - any pcode sucks 15 Apr 2007 01:22
#include <stdio.h>


class C {

  struct A;
  struct B {
    int i;
    A * a;//compilation error is here on "A" letter
  };

  struct A {
    int j;
  };

};


void main() {
  int i, j;
  scanf("%d %d", &i, &j);
  printf("%d", i+j);
}


this causes compilation error. But everything is
allowed by C++ standart and compiled properly in MSVS.Net
2003 and Borland C++ Builder.

Admins, please check and fix that.