记录详情

Compile Error

foo.c: In function 'main':
foo.c:5:27: error: expected expression before ')' token
    5 |         for(int a=0;a<n;++){
      |                           ^
foo.c:6:29: error: 'j' undeclared (first use in this function)
    6 |                 for(int j=0;j<a+1;j++){
      |                             ^
foo.c:6:29: note: each undeclared identifier is reported only once for each function it appears in
foo.c:7:36: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int' [-Wformat=]
    7 |                         printf("%lld ",a);
      |                                 ~~~^   ~
      |                                    |   |
      |                                    |   int
      |                                    long long int
      |                                 %d
foo.c:3:21: warning: unused variable 'a' [-Wunused-variable]
    3 |         long long n,a=0;
      |                     ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1207 C2-1 数字矩阵的左下三角
语言
C
递交时间
2023-10-24 17:51:06
评测时间
2023-10-24 17:51:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes