Problem orchard
User huangchengcheng
Submission Time 2026-06-11 16:44:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

orchard.cpp: In function ‘int main()’:
orchard.cpp:4:18: error: declaration does not declare anything [-fpermissive]
4 | #define int long long;
| ^~~~
orchard.cpp:10:5: note: in expansion of macro ‘int’
10 | int row_count,col_count;
| ^~~
orchard.cpp:10:9: error: ‘row_count’ was not declared in this scope
10 | int row_count,col_count;
| ^~~~~~~~~
orchard.cpp:10:19: error: ‘col_count’ was not declared in this scope
10 | int row_count,col_count;
| ^~~~~~~~~
orchard.cpp:4:18: error: declaration does not declare anything [-fpermissive]
4 | #define int long long;
| ^~~~
orchard.cpp:12:5: note: in expansion of macro ‘int’
12 | int total_ones=0;
| ^~~
orchard.cpp:12:9: error: ‘total_ones’ was not declared in this scope
12 | int total_ones=0;
| ^~~~~~~~~~
orchard.cpp:4:1