QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#79403#2933. Sequinary NumeralsZhangYiDeCompile Error//C++17574b2023-02-20 06:44:382023-02-20 06:44:40

详细

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);
      |         ~~~~~^~~~~~~~