foo.cc: In function 'int main()':
foo.cc:12:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
12 | for(int i=0;i<n;i++)
| ^~~
foo.cc:14:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
14 | int ans=0;
| ^~~
foo.cc:20:47: warning: 'tmp3' may be used uninitialized in this function [-Wmaybe-uninitialized]
20 | if(a[j]+a[k]==a[i] && !(a[i]==tmp1&&a[j]==tmp2&&a[k]==tmp3))ans++;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:20:59: warning: 'tmp2' may be used uninitialized in this function [-Wmaybe-uninitialized]
20 | if(a[j]+a[k]==a[i] && !(a[i]==tmp1&&a[j]==tmp2&&a[k]==tmp3))ans++;
| ~~~~~~~~~~^~~~~~~~~~~~
foo.cc:20:44: warning: 'tmp1' may be used uninitialized in this function [-Wmaybe-uninitialized]
20 | if(a[j]+a[k]==a[i] && !(a[i]==tmp1&&a[j]==tmp2&&a[k]==tmp3))ans++;
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务