Problem platonic9
User CZHT
Submission Time 2026-04-18 09:45:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

platonic9.cpp: In function ‘int main()’:
platonic9.cpp:9:24: error: expected ‘;’ before ‘)’ token
9 | for (int i=0; i<n, i++) {
| ^
| ;
platonic9.cpp:10:14: error: expected ‘;’ before ‘}’ token
10 | cin >> a[i]
| ^
| ;
11 | }
| ~
platonic9.cpp:15:9: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘int’)
15 | cout >> a[count];
| ~~~~ ^~ ~~~~~~~~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
platonic9.cpp:15:9: note: candidate: ‘operator>>(int, int)’ <built-in>
15 | cout >> a[count];
| ~~~~~^~~~~~~~~~~
platonic9.cpp:15:9: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_