/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int test1(int*, int, int)':
foo.cpp:19:6: error: invalid conversion from 'int*' to 'int' [-fpermissive]
foo.cpp:20:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
foo.cpp:22:4: error: incompatible types in assignment of 'int' to 'array {aka int [410]}'
foo.cpp:47:6: error: invalid conversion from 'int*' to 'int' [-fpermissive]
foo.cpp:50:4: error: incompatible types in assignment of 'int' to 'array {aka int [410]}'
foo.cpp:8:12: warning: unused variable 'f' [-Wunused-variable]
foo.cpp:8:16: warning: unused variable 'j' [-Wunused-variable]
foo.cpp:8:18: warning: unused variable 'k' [-Wunused-variable]
foo.cpp:9:9: warning: unused variable 'c' [-Wunused-variable]
foo.cpp: In function 'void calc(int*, int (&)[410])':
foo.cpp:68:21: error: 'memset' was not declared in this scope
foo.cpp:77:9: error: incompatible types in assignment of 'int' to 'array {aka int [410]}'
foo.cpp:67:7: warning: unused variable 'j' [-Wunused-variable]
foo.cpp: In function 'int test2(int*, int, int (&)[410])':
foo.cpp:96:21: error: 'memset' was not declared in this scope
foo.cpp:102:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
foo.cpp:104:9: error: invalid operands of types 'array {aka int [410]}' and 'int' to binary 'operator/'
foo.cpp:105:5: error: invalid operands of types 'array {aka int [410]}' and 'int' to binary 'operator%'
foo.cpp:108:27: error: incompatible types in assignment of 'int' to 'array {aka int [410]}'
foo.cpp:115:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
foo.cpp:119:25: error: incompatible types in assignment of 'int' to 'array {aka int [410]}'
foo.cpp: In function 'int main()':
foo.cpp:143:11: error: 'strlen' was not declared in this scope
foo.cpp:152:8: error: incompatible types in assignment of 'int' to 'array {aka int [410]}'
foo.cpp:175:21: error: 'memset' was not declared in this scope
foo.cpp:177:10: error: incompatible types in assignment of 'int' to 'array {aka int [410]}'
foo.cpp:188:21: error: 'memcpy' was not declared in this scope
foo.cpp:195:21: error: 'memset' was not declared in this scope
foo.cpp:208:21: error: 'memcpy' was not declared in this scope
foo.cpp:139:13: warning: unused variable 'flag' [-Wunused-variable]
foo.cpp: In function 'int test2(int*, int, int (&)[410])':
foo.cpp:123:1: warning: control reaches end of non-void function [-Wreturn-type]

信息

递交者
类型
递交
题目
P1005 超长数字串
语言
C++
递交时间
2014-03-07 14:25:15
评测时间
2014-03-07 14:25:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes