记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:9:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long long int *' [-Wformat=]
  scanf("%d %d %d %d",&a,&b,&c,&d);
          ^
/in/foo.c:9:13: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=]
  scanf("%d %d %d %d",&a,&b,&c,&d);
             ^
/in/foo.c:9:16: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'long long int *' [-Wformat=]
  scanf("%d %d %d %d",&a,&b,&c,&d);
                ^
/in/foo.c:9:19: warning: format '%d' expects argument of type 'int *', but argument 5 has type 'long long int *' [-Wformat=]
  scanf("%d %d %d %d",&a,&b,&c,&d);
                   ^
/in/foo.c:11:9: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  if (a>0,b>0,C>0,d<0)
         ^
/in/foo.c:11:14: error: 'C' undeclared (first use in this function)
  if (a>0,b>0,C>0,d<0)
              ^
/in/foo.c:11:14: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:11:13: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  if (a>0,b>0,C>0,d<0)
             ^
/in/foo.c:11:17: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  if (a>0,b>0,C>0,d<0)
                 ^
/in/foo.c:13:5: error: expected '(' before 'else'
  if else (a>0,b>0,c<0,d>0)
     ^~~~
/in/foo.c:15:5: error: expected '(' before 'else'
  if else (a>0,b<0,c>0,d>0)
     ^~~~
/in/foo.c:17:5: error: expected '(' before 'else'
  if else (a<0,b>0,c>0,d>0)
     ^~~~
/in/foo.c:20:3: error: expected expression before 'int'
   int f=e%(10**9+7);
   ^~~
/in/foo.c:19:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
  else
  ^~~~
/in/foo.c:21:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
   printf("%d",f);
   ^~~~~~
/in/foo.c:21:15: error: 'f' undeclared (first use in this function)
   printf("%d",f);
               ^

信息

递交者
类型
递交
题目
P1289 B. It's my own Invention
语言
C
递交时间
2024-08-14 11:45:50
评测时间
2024-08-14 11:45:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes