/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include <iostream> include <cstdio> include <cstring> include <string>
 ^
foo.cpp:3:1: error: 'string' does not name a type
 string s;
 ^
foo.cpp: In function 'int main()':
foo.cpp:6:22: error: 'scanf' was not declared in this scope
 while(scanf("%c",&get) && get!='E'){
                      ^
foo.cpp:8:1: error: 's' was not declared in this scope
 s.push_back(get);
 ^
foo.cpp:11:15: error: 's' was not declared in this scope
 for(int i=0;i<s.length();i++){
               ^
foo.cpp:16:31: error: 'printf' was not declared in this scope
         printf("%d:%d\n",se,op);
                               ^
foo.cpp:20:31: error: 'printf' was not declared in this scope
         printf("%d:%d\n",se,op);
                               ^
foo.cpp:25:23: error: 'printf' was not declared in this scope
 printf("%d:%d\n",se,op);
                       ^
foo.cpp:26:1: error: 'cout' was not declared in this scope
 cout<<endl;
 ^
foo.cpp:26:7: error: 'endl' was not declared in this scope
 cout<<endl;
       ^
foo.cpp:29:15: error: 's' was not declared in this scope
 for(int i=0;i<s.length();i++){
               ^

信息

递交者
类型
递交
题目
P1217 乒乓球
语言
C++
递交时间
2016-06-09 20:58:22
评测时间
2016-06-09 20:58:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes