Submission #1126568

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
11265682024-12-14 03:50:09modwweRobots (APIO13_robots)C++17
0 / 100
0 ms320 KiB
#include<bits/stdc++.h>
//#define int long long
#define ll long long
#define down cout<<'\n';
#define debug cout<<" cucuucucuuu",down
#define NHP ios_base::sync_with_stdio(0);cout.tie(0);cin.tie(0);
#define modwwe int t;cin>>t; while(t--)
#define bit(i,j) (i>>j&1)
#define sobit(a) __builtin_popcountll(a)
#define task "test"
#define fin(x) freopen(x".inp","r",stdin)
#define fou(x) freopen(x".out","w",stdout)
#define pb push_back
#define mask(k) (1<<k)
#define mp make_pair
#define checktime cerr << (double)clock() / CLOCKS_PER_SEC * 1000 << " ms";
using namespace std;
#define getchar_unlocked getchar
inline int scan()
{
char c = getchar_unlocked();
int x = 0;
while (c < '0' || c > '9')
{
c = getchar_unlocked();
}
while (c >= '0' && c <= '9')
{
x = (x << 1) + (x << 3) + c - '0';
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

robots.cpp:36:17: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow]
   36 | const int inf = 1e18;
      |                 ^~~~
robots.cpp:73:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   73 | main()
      | ^~~~
robots.cpp: In function 'void phongbeo()':
robots.cpp:209:39: warning: narrowing conversion of 'f.id::a' from 'int' to 'short int' [-Wnarrowing]
  209 |                 p.pb({x.a+1,x.b,x.c,f.a,new_f});
      |                                     ~~^
robots.cpp:209:41: warning: narrowing conversion of 'new_f' from 'int' to 'bool' [-Wnarrowing]
  209 |                 p.pb({x.a+1,x.b,x.c,f.a,new_f});
      |                                         ^~~~~
robots.cpp:213:76: warning: narrowing conversion of '(f.id::c * hihi[new_f])' from 'int' to 'short int' [-Wnarrowing]
  213 |                         trace[x.b][x.c][f.a][new_f]= {x.b,x.c,x.d,x.f,1,f.c*hihi[new_f]};
      |                                                                         ~~~^~~~~~~~~~~~
robots.cpp:214:97: warning: narrowing conversion of '(f.id::c * hihi[(1 - ((int)x.sc::f))])' from 'int' to 'short int' [-Wnarrowing]
  214 |                     else                     trace[x.b][x.c][f.a][new_f]= {x.b,x.c,x.d,x.f,1,f.c*hihi[1-x.f]};
      |                                                                                              ~~~^~~~~~~~~~~~
robots.cpp:226:46: warning: narrowing conversion of '(((int)x.sc::b) + 1)' from 'int' to 'short int' [-Wnarrowing]
  226 |                         p.push_front({x.a,x.b+1,x.c,0,0});
      |                                           ~~~^~
robots.cpp:234:46: warning: narrowing conversion of '(((int)x.sc::b) + 1)' from 'int' to 'short int' [-Wnarrowing]
  234 |                         p.push_front({x.a,x.b+1,x.c,x.d+1,x.f});
      |                                           ~~~^~
robots.cpp:234:56: warning: narrowing conversion of '(((int)x.sc::d) + 1)' from 'int' to 'short int' [-Wnarrowing]
  234 |                         p.push_front({x.a,x.b+1,x.c,x.d+1,x.f});
      |                                                     ~~~^~
robots.cpp:245:50: warning: narrowing conversion of '(((int)x.sc::c) + 1)' from 'int' to 'short int' [-Wnarrowing]
  245 |                         p.push_front({x.a,x.b,x.c+1,0,0});
      |                                               ~~~^~
robots.cpp:253:50: warning: narrowing conversion of '(((int)x.sc::c) + 1)' from 'int' to 'short int' [-Wnarrowing]
  253 |                         p.push_front({x.a,x.b,x.c+1,x.d+1,x.f});
      |                                               ~~~^~
robots.cpp:253:56: warning: narrowing conversion of '(((int)x.sc::d) + 1)' from 'int' to 'short int' [-Wnarrowing]
  253 |                         p.push_front({x.a,x.b,x.c+1,x.d+1,x.f});
      |                                                     ~~~^~
robots.cpp:266:42: warning: narrowing conversion of '(((int)x.sc::b) + 1)' from 'int' to 'short int' [-Wnarrowing]
  266 |                     p.push_front({x.a,x.b+1,x.c+1,x.d,x.f});
      |                                       ~~~^~
robots.cpp:266:48: warning: narrowing conversion of '(((int)x.sc::c) + 1)' from 'int' to 'short int' [-Wnarrowing]
  266 |                     p.push_front({x.a,x.b+1,x.c+1,x.d,x.f});
      |                                             ~~~^~
robots.cpp: In function 'int main()':
robots.cpp:11:23: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   11 | #define fin(x) freopen(x".inp","r",stdin)
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~
robots.cpp:77:9: note: in expansion of macro 'fin'
   77 |         fin(task);
      |         ^~~
robots.cpp:12:23: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   12 | #define fou(x) freopen(x".out","w",stdout)
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~
robots.cpp:78:9: note: in expansion of macro 'fou'
   78 |         fou(task);
      |         ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...