Compile Error

foo.cc: In function 'int main()':
foo.cc:6:4: error: expected initializer before 'for'
    for(int i=0;i<n;i++)
    ^~~
foo.cc:6:16: error: 'i' was not declared in this scope
    for(int i=0;i<n;i++)
                ^
foo.cc:6:18: error: 'n' was not declared in this scope
    for(int i=0;i<n;i++)
                  ^
foo.cc:8:10: error: 'a' was not declared in this scope
    cout<<a[i<<endl;]
          ^
foo.cc:8:19: error: expected ']' before ';' token
    cout<<a[i<<endl;]
                   ^
foo.cc:8:20: error: expected primary-expression before ']' token
    cout<<a[i<<endl;]
                    ^
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1054 A10-3 数组的去重
比赛
盛泽二中编程社团 5月阶段练习
语言
C++
递交时间
2021-05-13 21:57:29
评测时间
2021-05-13 21:57:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes