| Problem | penguingathering |
|---|---|
| User | Yuhmama |
| Submission Time | 2026-06-24 16:00:52 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
penguingathering.cpp: In function ‘int main()’:
penguingathering.cpp:10:7: error: ‘i’ was not declared in this scope
10 | for (i=0; i<=N; i++) {
| ^
penguingathering.cpp:12:6: error: expected ‘(’ before ‘K’
12 | if K=sqrt(A[i]); {
| ^
| (
penguingathering.cpp:13:9: error: ‘K’ was not declared in this scope
13 | A==((K-A[i])*(K-A[i]));
| ^
penguingathering.cpp:14:9: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<int>’)
14 | cout << A;
| ~~~~ ^~ ~
| | |
| | std::vector<int>
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/iostream:39,
from penguingathering.cpp:1:
/usr/include/c++/9/ostream:108:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>: