记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:11:14: error: 'i' was not declared in this scope
   11 |         for (i=0;i<10;i++)
      |              ^
foo.cc:20:23: error: 'i' was not declared in this scope
   20 |                 if (a[i]<minn)
      |                       ^
foo.cc:25:54: error: expected '}' at end of input
   25 |         cout<<"max="<<maxn<<endl<<"min="<<minn<<endl;
      |                                                      ^
foo.cc:4:1: note: to match this '{'
    4 | {
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1013 10个数中最大值和最小值
语言
C++
递交时间
2023-11-08 16:35:38
评测时间
2023-11-08 16:35:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes