/ WHOJ /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:8:20: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[10]' [-Wformat=]
    8 |     while(~scanf("%s %s",&a,&b))
      |                   ~^     ~~
      |                    |     |
      |                    char* char (*)[10]
foo.cc:8:23: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[10]' [-Wformat=]
    8 |     while(~scanf("%s %s",&a,&b))
      |                      ~^     ~~
      |                       |     |
      |                       char* char (*)[10]
foo.cc:11:23: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   11 |         for(int i=0; i<strlen(a); i++)
      |                      ~^~~~~~~~~~
foo.cc:16:23: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   16 |         for(int i=0; i<strlen(b); i++)
      |                      ~^~~~~~~~~~
Found 5 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Accepted 1ms 256.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 1ms 256.0 KiB
#5 Accepted 1ms 256.0 KiB

信息

递交者
类型
递交
题目
P1189 [USACO1.1]Your Ride Is Here
题目数据
下载
语言
C++
递交时间
2022-06-12 10:25:29
评测时间
2022-06-12 10:25:32
评测机
分数
100
总耗时
7ms
峰值内存
256.0 KiB