Problem | parallelogramisation2 |
---|---|
User | averagejav |
Submission Time | 2025-06-17 10:40:35 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
parallelogramisation2.cpp: In function ‘int main()’:
parallelogramisation2.cpp:16:9: error: ‘b’ was not declared in this scope
16 | b[i] = temp;
| ^
parallelogramisation2.cpp:19:13: error: expected ‘;’ before ‘for’
19 | ans = -1
| ^
| ;
20 | for (int i = 0; i < nums; i++){
| ~~~
parallelogramisation2.cpp:20:21: error: ‘i’ was not declared in this scope
20 | for (int i = 0; i < nums; i++){
| ^
parallelogramisation2.cpp:30:14: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘long int’)
30 | cout >> ans;
| ~~~~ ^~ ~~~
| | |
| | long int
| std::ostream {aka std::basic_ostream<char>}
parallelogramisation2.cpp:30:14: note: candidate: ‘operator>>