/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int out()':
foo.cc:35:17: warning: comparison with string literal results in unspecified behavior [-Waddress]
   if(ansstr[i]!=" ")
                 ^~~
foo.cc:35:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
foo.cc: In function 'int main()':
foo.cc:45:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i = 0;i < strlen(str);i++)
                   ~~^~~~~~~~~~~~~
foo.cc:43:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d %d %d\n",&p1,&p2,&p3);
     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~

信息

递交者
类型
递交
题目
P1379 字符串的展开
语言
C++
递交时间
2020-12-05 11:26:56
评测时间
2020-12-05 11:26:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes