/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include <cstdio> include <cstring> include <string> include <algorithm> 
 ^
foo.cpp:6:1: error: 'string' does not name a type
 string gm="g odmrni";//good morning
 ^
foo.cpp: In function 'void read()':
foo.cpp:11:16: error: 'getchar' was not declared in this scope
 char x=getchar();
                ^
foo.cpp: In function 'void work(int)':
foo.cpp:21:25: error: 'memset' was not declared in this scope
 memset(num,0,sizeof(num));
                         ^
foo.cpp:26:22: error: 'printf' was not declared in this scope
 printf("Case #%d: ",t);
                      ^
foo.cpp:28:17: error: 'strlen' was not declared in this scope
 int n=strlen(lie);
                 ^
foo.cpp:33:12: error: 'gm' was not declared in this scope
 if(lie[i]==gm[j])
            ^
foo.cpp:45:19: error: 'min' was not declared in this scope
 ans=min(ans,num[i]);
                   ^
foo.cpp: In function 'void readdata()':
foo.cpp:50:16: error: 'scanf' was not declared in this scope
 scanf("%d\n",&T);
                ^

信息

递交者
类型
递交
题目
P1902 学姐的清晨问候
语言
C++
递交时间
2014-11-02 10:45:02
评测时间
2014-11-02 10:45:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes