Submission #1002161

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
10021612024-06-19 10:36:16vjudge1Robots (APIO13_robots)C++17
10 / 100
2 ms6492 KiB
//#pragma GCC optimize ("O3")
//#pragma GCC target ("sse4")
#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define ull unsigned long long
#define pb push_back
#define pob pop_back
#define int long long
#define int2 __int128_t
#define Shrek_Crush228 ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
#define F first
#define S second
#define sz size()
#define FOR( i, x, n, d ) for( int i = x; i <= n; i += d )
#define FORR( i, x, n, d ) for( int i = x; i >= n; i -= d )
#define lb lower_bound
#define ub upper_bound
#define all(x) x.begin(), x.end()
#define no cout << "NO\n"
#define yes cout << "YES\n"
#define nep next_permutation
#define sigma signed
#define pii pair <int, int>
using namespace std;
string alp = "abcdefghijklmnopqrstuvwxyz";
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

robots.cpp: In function 'void get(long long int, long long int, long long int, long long int, long long int)':
robots.cpp:112:38: warning: unused variable 'okl' [-Wunused-variable]
  112 |  int xl, yl, xr, yr, xu, yu, xd, yd, okl = 0, okr = 0, oku = 0, okd = 0;
      |                                      ^~~
robots.cpp:112:47: warning: unused variable 'okr' [-Wunused-variable]
  112 |  int xl, yl, xr, yr, xu, yu, xd, yd, okl = 0, okr = 0, oku = 0, okd = 0;
      |                                               ^~~
robots.cpp:112:56: warning: unused variable 'oku' [-Wunused-variable]
  112 |  int xl, yl, xr, yr, xu, yu, xd, yd, okl = 0, okr = 0, oku = 0, okd = 0;
      |                                                        ^~~
robots.cpp:112:65: warning: unused variable 'okd' [-Wunused-variable]
  112 |  int xl, yl, xr, yr, xu, yu, xd, yd, okl = 0, okr = 0, oku = 0, okd = 0;
      |                                                                 ^~~
robots.cpp: In function 'void solve()':
robots.cpp:171:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  171 |  if( L.F + L.S > 0 ) get( x1, y1, L.F, L.S, 1 ); clean();
      |  ^~
robots.cpp:171:50: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  171 |  if( L.F + L.S > 0 ) get( x1, y1, L.F, L.S, 1 ); clean();
      |                                                  ^~~~~
robots.cpp:172:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  172 |  if( R.F + R.S > 0 ) get( x1, y1, R.F, R.S, 1 ); clean();
      |  ^~
robots.cpp:172:50: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  172 |  if( R.F + R.S > 0 ) get( x1, y1, R.F, R.S, 1 ); clean();
      |                                                  ^~~~~
robots.cpp:173:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  173 |  if( U.F + U.S > 0 ) get( x1, y1, U.F, U.S, 1 ); clean();
      |  ^~
robots.cpp:173:50: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  173 |  if( U.F + U.S > 0 ) get( x1, y1, U.F, U.S, 1 ); clean();
      |                                                  ^~~~~
robots.cpp:174:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  174 |  if( D.F + D.S > 0 ) get( x1, y1, D.F, D.S, 1 ); clean();
      |  ^~
robots.cpp:174:50: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  174 |  if( D.F + D.S > 0 ) get( x1, y1, D.F, D.S, 1 ); clean();
      |                                                  ^~~~~
robots.cpp: In function 'std::pair<long long int, long long int> to(long long int, long long int, long long int)':
robots.cpp:101:1: warning: control reaches end of non-void function [-Wreturn-type]
  101 | }
      | ^
robots.cpp: In function 'void solve()':
robots.cpp:175:5: warning: 'y2' may be used uninitialized in this function [-Wmaybe-uninitialized]
  175 |  get( x1, y1, x2, y2, 0 );
      |  ~~~^~~~~~~~~~~~~~~~~~~~~
robots.cpp:175:5: warning: 'x2' may be used uninitialized in this function [-Wmaybe-uninitialized]
robots.cpp:175:5: warning: 'y1' may be used uninitialized in this function [-Wmaybe-uninitialized]
robots.cpp:175:5: warning: 'x1' may be used uninitialized in this function [-Wmaybe-uninitialized]
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...