Runtime Error
foo.cc: In function 'int main()': foo.cc:83:11: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=] 83 | scanf("%d%d%d%d", &x1, &y1, &x2, &y2); | ~^ ~~~ | | | | int* long long int* | %lld foo.cc:83:13: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=] 83 | scanf("%d%d%d%d", &x1, &y1, &x2, &y2); | ~^ ~~~ | | | | int* long long int* | %lld foo.cc:83:15: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=] 83 | scanf("%d%d%d%d", &x1, &y1, &x2, &y2); | ~^ ~~~ | | | | int* long long int* | %lld foo.cc:83:17: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'long long int*' [-Wformat=] 83 | scanf("%d%d%d%d", &x1, &y1, &x2, &y2); | ~^ ~~~ | | | | int* long long int* | %lld foo.cc:85:32: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] 85 | if(minh[y1] != x1) printf("%d\n", ea[minh[y1]][y1]); | ~^ ~~~~~~~~~~~~~~~~ | | | | int long long int | %lld foo.cc:86:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] 86 | else printf("%d\n", ea[cmh[y1]][y1]); | ~^ ~~~~~~~~~~~~~~~ | | | | int long long int | %lld foo.cc:89:32: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] 89 | if(minz[x1] != y1) printf("%d\n", eb[x1][minz[x1]]); | ~^ ~~~~~~~~~~~~~~~~ | | | | int long long int | %lld foo.cc:90:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] 90 | else printf("%d\n", eb[x1][cmz[x1]]); | ~^ ~~~~~~~~~~~~~~~ | | | | int long long int | %lld foo.cc:64:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] 64 | freopen("walk.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ foo.cc:65:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] 65 | freopen("walk.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ foo.cc:83:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] 83 | scanf("%d%d%d%d", &x1, &y1, &x2, &y2); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 10 testcases.
您没有权限查看该代码,完成本题后再来查看
信息
- 递交者
- 类型
- 递交模式
- 题目
- P6241 [2023 AHOI初中组] 行走(walk)
- 语言
- C++14
- 递交时间
- 2023-04-16 20:42:02
- 评测时间
- 2023-04-16 20:42:02
- 评测机
- 分数
- 0
- 总耗时
- 6251ms
- 峰值内存
- 766.297 MiB