Submission #1002175

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
10021752024-06-19 10:42:03vjudge1Robots (APIO13_robots)C++17
0 / 100
3 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:115:38: warning: unused variable 'okl' [-Wunused-variable]
  115 |  int xl, yl, xr, yr, xu, yu, xd, yd, okl = 0, okr = 0, oku = 0, okd = 0;
      |                                      ^~~
robots.cpp:115:47: warning: unused variable 'okr' [-Wunused-variable]
  115 |  int xl, yl, xr, yr, xu, yu, xd, yd, okl = 0, okr = 0, oku = 0, okd = 0;
      |                                               ^~~
robots.cpp:115:56: warning: unused variable 'oku' [-Wunused-variable]
  115 |  int xl, yl, xr, yr, xu, yu, xd, yd, okl = 0, okr = 0, oku = 0, okd = 0;
      |                                                        ^~~
robots.cpp:115:65: warning: unused variable 'okd' [-Wunused-variable]
  115 |  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:174:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  174 |  if( L.F + L.S > 0 ) get( x1, y1, L.F, L.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( L.F + L.S > 0 ) get( x1, y1, L.F, L.S, 1 ); clean();
      |                                                  ^~~~~
robots.cpp:175:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  175 |  if( R.F + R.S > 0 ) get( x1, y1, R.F, R.S, 1 ); clean();
      |  ^~
robots.cpp:175:50: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  175 |  if( R.F + R.S > 0 ) get( x1, y1, R.F, R.S, 1 ); clean();
      |                                                  ^~~~~
robots.cpp:176:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  176 |  if( U.F + U.S > 0 ) get( x1, y1, U.F, U.S, 1 ); clean();
      |  ^~
robots.cpp:176:50: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  176 |  if( U.F + U.S > 0 ) get( x1, y1, U.F, U.S, 1 ); clean();
      |                                                  ^~~~~
robots.cpp:177:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  177 |  if( D.F + D.S > 0 ) get( x1, y1, D.F, D.S, 1 ); clean();
      |  ^~
robots.cpp:177:50: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  177 |  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:104:1: warning: control reaches end of non-void function [-Wreturn-type]
  104 | }
      | ^
robots.cpp: In function 'void solve()':
robots.cpp:178:5: warning: 'y2' may be used uninitialized in this function [-Wmaybe-uninitialized]
  178 |  get( x1, y1, x2, y2, 0 );
      |  ~~~^~~~~~~~~~~~~~~~~~~~~
robots.cpp:178:5: warning: 'x2' may be used uninitialized in this function [-Wmaybe-uninitialized]
robots.cpp:178:5: warning: 'y1' may be used uninitialized in this function [-Wmaybe-uninitialized]
robots.cpp:178: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...