Problem platonic
User akyy1713
Submission Time 2025-06-19 10:21:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

platonic.cpp: In function ‘int main()’:
platonic.cpp:23:9: error: redeclaration of ‘int greatest’
23 | int greatest = 0;
| ^~~~~~~~
platonic.cpp:8:9: note: ‘int greatest’ previously declared here
8 | int greatest = 0;
| ^~~~~~~~
platonic.cpp:25:6: error: conflicting declaration ‘int arr [b]’
25 | int arr[b];
| ^~~
platonic.cpp:10:6: note: previous declaration as ‘int arr [a]’
10 | int arr[a];
| ^~~
platonic.cpp:38:9: error: redeclaration of ‘int greatest’
38 | int greatest = 0;
| ^~~~~~~~
platonic.cpp:8:9: note: ‘int greatest’ previously declared here
8 | int greatest = 0;
| ^~~~~~~~
platonic.cpp:40:6: error: conflicting declaration ‘int arr [v]’
40 | int arr[v];
| ^~~
platonic.cpp:10:6: note: previous declaration as ‘int arr [a]’
10 | int arr[a];
| ^~~