Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:11: error: 'i' was not declared in this scope
  cout<<(a[i]==0)?"yes":"no"<<endl;
           ^
/in/foo.cc:10:28: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
  cout<<(a[i]==0)?"yes":"no"<<endl;
                        ~~~~^~~~~~

信息

递交者
类型
递交
题目
P1846 Fibonacci 模3
语言
C++
递交时间
2024-03-31 08:05:11
评测时间
2024-03-31 08:05:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes