Problem | penguingathering |
---|---|
User | christal |
Submission Time | 2023-12-09 11:58:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
penguingathering.cpp: In function ‘int main()’:
penguingathering.cpp:6:8: error: ‘i’ was not declared in this scope
6 | int N[i];
| ^
penguingathering.cpp:11:17: error: ‘X’ was not declared in this scope
11 | diff[i] = K - X[i];
| ^
penguingathering.cpp:13:9: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘int’)
13 | cout >> min_diff;
| ~~~~ ^~ ~~~~~~~~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
penguingathering.cpp:13:9: note: candidate: ‘operator>>(int, int)’ <built-in>
13 | cout >> min_diff;
| ~~~~~^~~~~~~~~~~
penguingathering.cpp:13:9: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits