/ Vijos /

记录详情

Compile Error

foo.cpp:30:1: error: stray '\221' in program
 inline const int getint() { int r=0, k=1; char c=getchar(); for(; c<‘0‘||c>‘9‘; c=getchar()) if(c==‘-‘) k=-1; for(; c>=‘0‘&&c<=‘9‘; c=getchar()) r=r*10+c-‘0‘; return k*r; }
 ^
foo.cpp:30:1: error: stray '\221' in program
foo.cpp:30:1: error: stray '\221' in program
foo.cpp:30:1: error: stray '\221' in program
foo.cpp:30:1: error: stray '\221' in program
foo.cpp:30:1: error: stray '\221' in program
foo.cpp:30:1: error: stray '\221' in program
foo.cpp:30:1: error: stray '\221' in program
foo.cpp:30:1: error: stray '\221' in program
foo.cpp:30:1: error: stray '\221' in program
foo.cpp:30:1: error: stray '\221' in program
foo.cpp:30:1: error: stray '\221' in program
foo.cpp:42:2: error: stray '\221' in program
  for1(i, 1, n) if(a[i]==‘j‘) ++mn1; else ++mn2;
  ^
foo.cpp:42:2: error: stray '\221' in program
foo.cpp:45:3: error: stray '\221' in program
   t1=a[i]==‘j‘;
   ^
foo.cpp:45:3: error: stray '\221' in program
foo.cpp:46:3: error: stray '\221' in program
   t2=a[i-1]==‘z‘;
   ^
foo.cpp:46:3: error: stray '\221' in program
foo.cpp: In function 'const int getint()':
foo.cpp:30:103: error: expected primary-expression before ')' token
 inline const int getint() { int r=0, k=1; char c=getchar(); for(; c<‘0‘||c>‘9‘; c=getchar()) if(c==‘-‘) k=-1; for(; c>=‘0‘&&c<=‘9‘; c=getchar()) r=r*10+c-‘0‘; return k*r; }
                                                                                                       ^
foo.cpp: In function 'int main()':
foo.cpp:42:26: error: 'j' was not declared in this scope
  for1(i, 1, n) if(a[i]==‘j‘) ++mn1; else ++mn2;
                          ^
foo.cpp:45:13: error: 'j' was not declared in this scope
   t1=a[i]==‘j‘;
             ^
foo.cpp:46:15: error: 'z' was not declared in this scope
   t2=a[i-1]==‘z‘;
               ^

信息

递交者
类型
递交
题目
P1616 迎接仪式
语言
C++
递交时间
2016-10-28 11:52:14
评测时间
2016-10-28 11:52:15
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes