|
|
back to boardproblems with C++ compiler on timus #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. |
|
|