/ MYOJ /

记录详情

Compile Error

foo.cc:15:1: error: extended character   is not valid in an identifier
   15 |               a[i+1]=a1[i]-48;
      | ^
foo.cc:15:1: error: extended character   is not valid in an identifier
foo.cc:21:1: error: extended character   is not valid in an identifier
   21 |                lenc=1;
      | ^
foo.cc:23:2: error: extended character   is not valid in an identifier
   23 |                        lenc++;                                      //删除前导0
      |  ^
foo.cc: In function 'int main()':
foo.cc:11:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   11 |         gets(a1);
      |         ~~~~^~~~
In file included from /nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/cstdio:42,
                 from /nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/ext/string_conversions.h:43,
                 from /nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/bits/basic_string.h:3968,
                 from /nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/string:53,
                 from /nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/bits/locale_classes.h:40,
                 from /nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/bits/ios_base.h:41,
                 from /nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/ios:42,
                 from /nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/ostream:38,
                 from iostream:39:
/nix/store/3w4yrspgcx1z9wi18rv0hbap4jjlhx4c-glibc-2.37-8-dev/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
foo.cc:15:1: error: '\U00003000\U00003000' was not declared in this scope
   15 |               a[i+1]=a1[i]-48;
      | ^~~~
foo.cc:21:1: error: '\U00003000' was not declared in this scope
   21 |                lenc=1;
      | ^~
foo.cc:23:8: error: expected ';' before 'lenc'
   23 |                        lenc++;                                      //删除前导0
      |    ^~~~~                ~~~~
      |        ;
foo.cc:7:22: warning: unused variable 'c1' [-Wunused-variable]
    7 |         char a1[100],c1[100];
      |                      ^~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1023 [7FOJ]高精度除法
语言
C++
递交时间
2023-09-22 18:56:30
评测时间
2023-09-22 18:56:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes