QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#282469 | #4923. 整数 | Reliauk | Compile Error | / | / | C++17 | 952b | 2023-12-12 08:15:04 | 2023-12-12 08:15:04 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
implementer.cpp: In function ‘void integer_grader_F0F01B59EA9BF23E::generateToken()’: implementer.cpp:19:57: warning: format ‘%llX’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘std::mersenne_twister_engine<long unsigned int, 64, 312, 156, 31, 13043109905998158313, 29, 6148914691236517205, 17, 8202884508482404352, 37, 18444473444759240704, 43, 6364136223846793005>::result_type’ {aka ‘long unsigned int’} [-Wformat=] 19 | for(int i = 1; i <= 40; i++) printf("%llX", (rng() & 15)); | ~~~^ ~~~~~~~~~~~~ | | | | | std::mersenne_twister_engine<long unsigned int, 64, 312, 156, 31, 13043109905998158313, 29, 6148914691236517205, 17, 8202884508482404352, 37, 18444473444759240704, 43, 6364136223846793005>::result_type {aka long unsigned int} | long long unsigned int | %lX implementer.cpp: In function ‘void integer_grader_F0F01B59EA9BF23E::main()’: implementer.cpp:47:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 47 | scanf("%d", &n); | ~~~~~^~~~~~~~~~ implementer.cpp:49:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 49 | scanf("%d", p + i); | ~~~~~^~~~~~~~~~~~~ answer.code:8:6: error: ambiguating new declaration of ‘auto operate(int)’ 8 | auto operate(int p) { | ^~~~~~~ In file included from answer.code:4: integer.h:4:5: note: old declaration ‘int operate(int)’ 4 | int operate(const int i); | ^~~~~~~ answer.code: In function ‘auto operate(int)’: answer.code:9:13: error: ‘impact’ was not declared in this scope 9 | int nxt = impact(p), ans = nxt - popcnt; | ^~~~~~ answer.code:10:24: error: ‘ans’ was not declared in this scope; did you mean ‘abs’? 10 | return popcnt = nxt, ans; | ^~~ | abs answer.code: In function ‘std::vector<int> findPermutation(int)’: answer.code:16:31: error: ‘Ask’ was not declared in this scope 16 | for (int i = 0; i < n; ++i) Ask(i); | ^~~ answer.code:27:15: error: ‘Ask’ was not declared in this scope 27 | int v = Ask(ord[i]); | ^~~ answer.code:31:27: error: ‘Ask’ was not declared in this scope 31 | if (p[i] > p[last]) Ask(i); | ^~~ answer.code:33:5: error: ‘Ask’ was not declared in this scope 33 | Ask(last), ++extra; | ^~~