/ Vijos /

记录详情

Compile Error

foo.cpp:20: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:20:1: error: stray '\221' in program
foo.cpp:20:1: error: stray '\221' in program
foo.cpp:20:1: error: stray '\221' in program
foo.cpp:20:1: error: stray '\221' in program
foo.cpp:20:1: error: stray '\221' in program
foo.cpp:20:1: error: stray '\221' in program
foo.cpp:20:1: error: stray '\221' in program
foo.cpp:20:1: error: stray '\221' in program
foo.cpp:20:1: error: stray '\221' in program
foo.cpp:20:1: error: stray '\221' in program
foo.cpp:20:1: error: stray '\221' in program
foo.cpp: In function 'const int getint()':
foo.cpp:20: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:64:41: warning: unknown conversion type character 'l' in format [-Wformat=]
  if(ans) printf("%lld/%lld", fm/d, ans/d);
                                         ^
foo.cpp:64:41: warning: unknown conversion type character 'l' in format [-Wformat=]
foo.cpp:64:41: warning: too many arguments for format [-Wformat-extra-args]

信息

递交者
类型
递交
题目
P1286 座位安排
语言
C++
递交时间
2016-11-24 23:43:41
评测时间
2016-11-24 23:43:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes