| Problem | platonic15 |
|---|---|
| User | DaPeter |
| Submission Time | 2025-12-10 13:59:38 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
platonic15.cpp: In function ‘int main()’:
platonic15.cpp:9:28: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
9 | if (a[n-1]==1||a[n-1]==3) ans+=1LL*(n-p)*(n-p+1)/2;
| ^~~
| abs
platonic15.cpp:9:40: error: ‘p’ was not declared in this scope
9 | if (a[n-1]==1||a[n-1]==3) ans+=1LL*(n-p)*(n-p+1)/2;
| ^
platonic15.cpp:14:2: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
14 | ans = 0;
| ^~~
| abs
platonic15.cpp:17:16: error: ‘i’ was not declared in this scope
17 | ans+=cnt[pre[i]];
| ^
platonic15.cpp: At global scope:
platonic15.cpp:20:2: error: ‘cout’ does not name a type
20 | cout<<ans;
| ^~~~
platonic15.cpp:21:1: error: expected declaration before ‘}’ token
21 | }
| ^