QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#486488#7184. Transport PlusesGuanYunchangCompile Error//C++173.9kb2024-07-21 20:34:072024-07-21 20:34:08

Details

answer.code:9:21: warning: overflow in conversion from ‘double’ to ‘short int’ changes value from ‘2.00001e+5’ to ‘32767’ [-Woverflow]
    9 | const short M = 2e5 + 1;
      |                 ~~~~^~~
answer.code:30:9: error: size of array ‘d’ exceeds maximum object size ‘9223372036854775807’
   30 | float d[M];
      |         ^
answer.code:31:13: error: size of array ‘check’ exceeds maximum object size ‘9223372036854775807’
   31 | short check[M];
      |             ^
answer.code:32:12: error: size of array ‘trace’ exceeds maximum object size ‘9223372036854775807’
   32 | Edge trace[M];
      |            ^
answer.code:34:16: error: size of array ‘a’ exceeds maximum object size ‘9223372036854775807’
   34 | vector<Edge> a[M];
      |                ^
answer.code:47:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
   47 | main()
      | ^~~~
answer.code: In function ‘int main()’:
answer.code:127:40: warning: narrowing conversion of ‘d[((int)it.Edge::v)]’ from ‘float’ to ‘short int’ [-Wnarrowing]
  127 |                 edge.push({it.v, d[it.v]});
      |                                  ~~~~~~^
answer.code:148:35: warning: narrowing conversion of ‘(((int)yz) % ((int)N))’ from ‘int’ to ‘short int’ [-Wnarrowing]
  148 |         move.pb({trace[yz].id, yz % N, yz / N});
      |                                ~~~^~~
answer.code:148:43: warning: narrowing conversion of ‘(((int)yz) / ((int)N))’ from ‘int’ to ‘short int’ [-Wnarrowing]
  148 |         move.pb({trace[yz].id, yz % N, yz / N});
      |                                        ~~~^~~
answer.code:51:16: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   51 |         freopen("task.inp", "r", stdin);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
answer.code:52:16: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   52 |         freopen("task.out", "w", stdout);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~