Problem duckhunt32
User YSH2020
Submission Time 2025-12-17 15:43:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt32.cpp: In function ‘int main()’:
duckhunt32.cpp:7:1: error: expected ‘,’ or ‘;’ before ‘for’
7 | for(int i=0;i<n;i++)for(int j=i+1;j<n;j++)for(int k=j+1;k<n;k++)ans+=(a[i]*a[j]==a[k]);
| ^~~
duckhunt32.cpp:7:13: error: ‘i’ was not declared in this scope
7 | for(int i=0;i<n;i++)for(int j=i+1;j<n;j++)for(int k=j+1;k<n;k++)ans+=(a[i]*a[j]==a[k]);
| ^
duckhunt32.cpp:7:35: error: ‘j’ was not declared in this scope
7 | for(int i=0;i<n;i++)for(int j=i+1;j<n;j++)for(int k=j+1;k<n;k++)ans+=(a[i]*a[j]==a[k]);
| ^
duckhunt32.cpp:7:57: error: ‘k’ was not declared in this scope
7 | for(int i=0;i<n;i++)for(int j=i+1;j<n;j++)for(int k=j+1;k<n;k++)ans+=(a[i]*a[j]==a[k]);
| ^