/ OPS /

记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:2: error: 'cout' undeclared (first use in this function)
    6 |  cout<<"请输入矩阵规模";
      |  ^~~~
/in/foo.c:6:2: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:6:31: error: stray '\357' in program
    6 |  cout<<"请输入矩阵规模";
      |                               ^
/in/foo.c:6:32: error: stray '\274' in program
    6 |  cout<<"请输入矩阵规模";
      |                                ^
/in/foo.c:6:33: error: stray '\233' in program
    6 |  cout<<"请输入矩阵规模";
      |                                 ^
/in/foo.c:6:31: error: expected ';' before 'cin'
    6 |  cout<<"请输入矩阵规模";
      |                               ^
      |                               ;
    7 |  cin>>n;
      |  ~~~                           
/in/foo.c:8:2: error: unknown type name 'string'; did you mean 'stdin'?
    8 |  string a[n][n];
      |  ^~~~~~
      |  stdin
/in/foo.c:9:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    9 |  for(int i=0,i<n;i++)
      |               ^
/in/foo.c:9:21: error: expected ';' before ')' token
    9 |  for(int i=0,i<n;i++)
      |                     ^
      |                     ;
/in/foo.c:10:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   10 |    { for(int j=0,j<n.j++)
      |                   ^
/in/foo.c:16:4: error: expected expression before '}' token
   16 |    }
      |    ^
/in/foo.c:16:4: error: expected expression before '}' token
/in/foo.c:16:4: error: expected expression before '}' token
/in/foo.c:10:14: warning: unused variable 'j' [-Wunused-variable]
   10 |    { for(int j=0,j<n.j++)
      |              ^

信息

递交者
类型
递交
题目
P1353 倒填矩阵
语言
C
递交时间
2025-03-25 16:25:15
评测时间
2025-03-25 16:25:15
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes