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 1082. Gaby Ivanushka

Program on C can't be compiled
Posted by Veniamin 18 Feb 2005 14:05
I looked at program version on C, and found interesting strings:
int main(void)
 {
  c=0;
  for(long i=0; i<N; ++i)
   scanf("%ld", &A[i]);
 ....
This code can' be compile on C. Because variable “i” can be declared in operator “for”(according to C standard)!!!!Check it!
It depends from compiler. Read the documentation more careful.
Posted by Vlad Veselov [PMG17,Vinnitsa - KNU,Kiev] 18 Feb 2005 19:25
For example, Borland C++ 3.1 cannot compile this, but it is not a bug.

Edited by author 18.02.2005 19:25