Submission #1164866

#TimeUsernameProblemLanguageResultExecution timeMemory
1164866nuutsnoynton산악 구조대 (JOI13_mountain)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> //#include "grader.h" using namespace std; using ll = long long; const int mod = 998244353; void Rescue(int R, int C, int MR, int MC, int X){ int x, y, s; x = MR; y = 1; while ( y < MC ) { while (x >= 1) { s = Measure(x, y); if ( s > X) x --; else { if (s == X) { Pinpoint(x, y); } else break; } } y ++; } x = MR; y = C; while ( y >= MC ) { while (x >= 1) { s = Measure(x, y); if ( s > X) x --; else { if (s == X) { Pinpoint(x, y); } else break; } } y --; } x = MR; y = 1; while ( y < MC ) { while (x <= R) { s = Measure(x, y); if ( s > X) x ++; else { if (s == X) { Pinpoint(x, y); } else break; } } y ++; } x = MR; y = C; while ( y >= MC ) { while (x <= R) { s = Measure(x, y); if ( s > X) x ++; else { if (s == X) { Pinpoint(x, y); } else break; } } y --; } }

Compilation message (stderr)

mountain.cpp: In function 'void Rescue(int, int, int, int, int)':
mountain.cpp:14:30: error: 'Measure' was not declared in this scope
   14 |                         s =  Measure(x, y);
      |                              ^~~~~~~
mountain.cpp:18:41: error: 'Pinpoint' was not declared in this scope
   18 |                                         Pinpoint(x, y);
      |                                         ^~~~~~~~
mountain.cpp:29:30: error: 'Measure' was not declared in this scope
   29 |                         s =  Measure(x, y);
      |                              ^~~~~~~
mountain.cpp:33:41: error: 'Pinpoint' was not declared in this scope
   33 |                                         Pinpoint(x, y);
      |                                         ^~~~~~~~
mountain.cpp:44:30: error: 'Measure' was not declared in this scope
   44 |                         s =  Measure(x, y);
      |                              ^~~~~~~
mountain.cpp:48:41: error: 'Pinpoint' was not declared in this scope
   48 |                                         Pinpoint(x, y);
      |                                         ^~~~~~~~
mountain.cpp:59:30: error: 'Measure' was not declared in this scope
   59 |                         s =  Measure(x, y);
      |                              ^~~~~~~
mountain.cpp:63:41: error: 'Pinpoint' was not declared in this scope
   63 |                                         Pinpoint(x, y);
      |                                         ^~~~~~~~