QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#79403 | #2933. Sequinary Numerals | ZhangYiDe | Compile Error | / | / | C++17 | 574b | 2023-02-20 06:44:38 | 2023-02-20 06:44:40 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:14:14: error: ‘ulint’ was not declared in this scope; did you mean ‘uint’? 14 | uint64_t qow(ulint a,int b){ | ^~~~~ | uint answer.code:14:22: error: expected primary-expression before ‘int’ 14 | uint64_t qow(ulint a,int b){ | ^~~ answer.code:14:27: error: expression list treated as compound expression in initializer [-fpermissive] 14 | uint64_t qow(ulint a,int b){ | ^ answer.code: In function ‘int main()’: answer.code:31:29: error: ‘qow’ cannot be used as a function 31 | uint64_t nu=0,de=qow(2,n); | ~~~^~~~~ answer.code:35:35: error: ‘qow’ cannot be used as a function 35 | nu+=(s[i]-'0')*qow(3,i)*qow(2,n-i); | ~~~^~~~~ answer.code:35:44: error: ‘qow’ cannot be used as a function 35 | nu+=(s[i]-'0')*qow(3,i)*qow(2,n-i); | ~~~^~~~~~~ answer.code:44:28: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 44 | printf("%llu\n",nu); | ~~~^ ~~ | | | | | uint64_t {aka long unsigned int} | long long unsigned int | %lu answer.code:48:28: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 48 | printf("%llu %llu/%llu\n",nu/de,nu%de,de); | ~~~^ ~~~~~ | | | | | uint64_t {aka long unsigned int} | long long unsigned int | %lu answer.code:48:33: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 48 | printf("%llu %llu/%llu\n",nu/de,nu%de,de); | ~~~^ ~~~~~ | | | | | uint64_t {aka long unsigned int} | long long unsigned int | %lu answer.code:48:38: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 48 | printf("%llu %llu/%llu\n",nu/de,nu%de,de); | ~~~^ ~~ | | | | | uint64_t {aka long unsigned int} | long long unsigned int | %lu answer.code:23:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 23 | scanf("%s",s); | ~~~~~^~~~~~~~