Submission #298902

#TimeUsernameProblemLanguageResultExecution timeMemory
298902lakshith_Rail (IOI14_rail)C++14
Compilation error
0 ms0 KiB
#include "rail.h" void findLocation(int N, int first, int location[], int stype[]){ for(int i=1;i<n;i++){ location[i] = getDistance(0,i)+first; stype[i]=2; } location[0]=first; stype[0]=1; }

Compilation message (stderr)

rail.cpp: In function 'void findLocation(int, int, int*, int*)':
rail.cpp:4:19: error: 'n' was not declared in this scope
    4 |     for(int i=1;i<n;i++){
      |                   ^