/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include<iostream> include<cstdio> include<cctype> include<cmath>
 ^
foo.cpp: In function 'int main()':
foo.cpp:8:93: error: 'getchar' was not declared in this scope
 if(num<0) return 0-num; return num; } int main() { int i=0; int j=0; while(1) { cc= getchar(); if(cc=='E') break; if(!isalpha(cc)) continue; if(cc=='W') a1[i]++,a2[j]++; if(cc=='L') b1[i]++,b2[j]++; if(a1[i]>=11 || b1[i]>=11)
                                                                                             ^
foo.cpp:8:129: error: 'isalpha' was not declared in this scope
 if(num<0) return 0-num; return num; } int main() { int i=0; int j=0; while(1) { cc= getchar(); if(cc=='E') break; if(!isalpha(cc)) continue; if(cc=='W') a1[i]++,a2[j]++; if(cc=='L') b1[i]++,b2[j]++; if(a1[i]>=11 || b1[i]>=11)
                                                                                                                                 ^
foo.cpp:16:1: error: 'cout' was not declared in this scope
 cout<<a1[k]<<':'<<b1[k]<<endl;
 ^
foo.cpp:16:26: error: 'endl' was not declared in this scope
 cout<<a1[k]<<':'<<b1[k]<<endl;
                          ^
foo.cpp:17:1: error: 'cout' was not declared in this scope
 cout<<endl;
 ^
foo.cpp:17:7: error: 'endl' was not declared in this scope
 cout<<endl;
       ^

信息

递交者
类型
递交
题目
P1217 乒乓球
语言
C++
递交时间
2016-11-23 16:30:24
评测时间
2016-11-23 16:30:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes