/ Vijos /

记录详情

Compile Error

/in/foo.c: In function 'aa':
/in/foo.c:9:11: error: invalid operands to binary % (have 'long int' and 'double')
    i = i*a%A;
           ^
/in/foo.c:10:10: error: invalid operands to binary % (have 'long int' and 'double')
   a = a*a%A;
          ^
/in/foo.c: In function 'main':
/in/foo.c:18:2: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
  scanf("%d", &b);
  ^
/in/foo.c:19:2: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
  printf("%d\n", aa(b));
  ^

信息

递交者
类型
递交
题目
P1036 运算
语言
C
递交时间
2019-12-02 17:05:25
评测时间
2019-12-02 17:05:25
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes