Problem area_noi
User briyanii
Submission Time 2023-08-13 20:08:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

area_noi.cpp: In function ‘int main()’:
area_noi.cpp:7:7: error: ‘i’ was not declared in this scope
7 | for (i = 0; i < n; i++;) {
| ^
area_noi.cpp:7:24: error: expected ‘)’ before ‘;’ token
7 | for (i = 0; i < n; i++;) {
| ~ ^
| )
area_noi.cpp:7:25: error: expected primary-expression before ‘)’ token
7 | for (i = 0; i < n; i++;) {
| ^
area_noi.cpp:14:7: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘int’)
14 | cout >> highest;
| ~~~~ ^~ ~~~~~~~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
area_noi.cpp:14:7: note: candidate: ‘operator>>(int, int)’ <built-in>
14 | cout >> highest;
| ~~~~~^~~~~~~~~~
area_noi.cpp:14:7: note: no known convers