/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'void RPRP()':
foo.cpp:11:18: error: 'srand' was not declared in this scope
  srand(time(NULL));
                  ^
foo.cpp:12:9: error: 'rand' was not declared in this scope
  t=rand()%MD+50;
         ^
foo.cpp: In function 'void getans(char*)':
foo.cpp:34:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  while (i<strlen(ch)){
                    ^
foo.cpp: At global scope:
foo.cpp:88:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
 main()
      ^
foo.cpp: In function 'int main()':
foo.cpp:98:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (j=0;j<strlen(ex);j++)
                      ^
foo.cpp:114:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (j=0;j<strlen(in);j++)
                       ^

信息

递交者
类型
递交
题目
P1003 等价表达式
语言
C++
递交时间
2014-08-11 10:03:43
评测时间
2014-08-11 10:03:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes