记录详情

Compile Error

foo.c: In function 'main':
foo.c:5:9: error: expected identifier or '(' before numeric constant
    5 |     int 3,5;
      |         ^
foo.c:6:18: error: lvalue required as unary '&' operand
    6 |     scanf("%d%d",&3,&5);
      |                  ^
foo.c:6:21: error: lvalue required as unary '&' operand
    6 |     scanf("%d%d",&3,&5);
      |                     ^
foo.c:7:12: warning: missing terminating " character
    7 |     printf("%d\n,3+5);
      |            ^
foo.c:7:12: error: missing terminating " character
    7 |     printf("%d\n,3+5);
      |            ^~~~~~~~~~~
foo.c:8:12: warning: missing terminating " character
    8 |     printf("%d\n,3*5);
      |            ^
foo.c:8:12: error: missing terminating " character
    8 |     printf("%d\n,3*5);
      |            ^~~~~~~~~~~
foo.c:9:12: warning: missing terminating " character
    9 |     printf("%d,3%5);
      |            ^
foo.c:9:12: error: missing terminating " character
    9 |     printf("%d,3%5);
      |            ^~~~~~~~~
foo.c:10:5: error: expected expression before 'return'
   10 |     return 0;
      |     ^~~~~~
foo.c:10:14: error: expected ')' before '}' token
   10 |     return 0;
      |              ^
      |              )
   11 | }
      | ~             
foo.c:8:11: note: to match this '('
    8 |     printf("%d\n,3*5);
      |           ^
foo.c:10:14: error: expected ')' before '}' token
   10 |     return 0;
      |              ^
      |              )
   11 | }
      | ~             
foo.c:7:11: note: to match this '('
    7 |     printf("%d\n,3+5);
      |           ^
foo.c:10:14: error: expected ';' before '}' token
   10 |     return 0;
      |              ^
      |              ;
   11 | }
      | ~             
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1078 xf1-1两数和、积、余
比赛
2022年迎新赛(第二场)
语言
C
递交时间
2022-08-27 18:14:20
评测时间
2022-08-27 18:14:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes