/ fz_zsl /

记录详情

Compile Error

/in/foo.cc: In function 'T read()':
/in/foo.cc:32:22: error: unable to find numeric literal operator 'operator""c'
  if ( c=='-' ) sign=-1.c=getchar();
                      ^~~
/in/foo.cc:32:22: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
/in/foo.cc: In function 'int main()':
/in/foo.cc:146:4: error: 'op' does not name a type
  R op , x ;
    ^~
/in/foo.cc:152:3: error: 'op' was not declared in this scope
   op=read<int>();
   ^~
/in/foo.cc:155:41: error: '__gcd' was not declared in this scope
    printf("%d/%d\n",tot1/__gcd(tot1,tot2),tot2/__gcd(tot1,tot2));
                                         ^
/in/foo.cc:155:41: note: suggested alternative:
In file included from /usr/include/c++/6/algorithm:62:0,
                 from /in/foo.cc:2:
/usr/include/c++/6/bits/stl_algo.h:1229:5: note:   'std::__gcd'
     __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
     ^~~~~
/in/foo.cc:158:3: error: 'x' was not declared in this scope
   x=read<int>();
   ^

信息

递交者
类型
递交
题目
图书管理系统
语言
C++
递交时间
2018-04-07 13:11:09
评测时间
2018-04-07 13:11:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes