记录详情

Accepted

foo.cc: In function ‘int main()’:
foo.cc:6:17: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[1000000000]’ [-Wformat=]
    6 |         scanf("%s",&arr);
      |                ~^  ~~~~
      |                 |  |
      |                 |  char (*)[1000000000]
      |                 char*
foo.cc:11:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
   11 |         for(i=0;i<strlen(arr);i++)
      |                 ~^~~~~~~~~~~~
正在同步测试数据,请稍后
# 状态 耗时 内存占用
#1 Accepted 3ms 320.0 KiB
#2 Accepted 3ms 536.0 KiB
#3 Accepted 2ms 540.0 KiB
#4 Accepted 2ms 536.0 KiB

信息

递交者
类型
递交
题目
P1080 1-1 数字循环左移
语言
C++
递交时间
2024-08-15 08:58:38
评测时间
2024-08-15 08:58:38
评测机
分数
100
总耗时
12ms
峰值内存
540.0 KiB