Problem sonictheparallelogram
User vadar2525
Submission Time 2025-08-13 16:21:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sonictheparallelogram.cpp: In function ‘int main()’:
sonictheparallelogram.cpp:11:6: error: conflicting declaration ‘long long int a [n]’
11 | int a[n];
| ^
sonictheparallelogram.cpp:9:7: note: previous declaration as ‘bool a’
9 | bool a = true;
| ^
sonictheparallelogram.cpp:13:13: error: invalid types ‘bool[long long int]’ for array subscript
13 | cin >> a[i];
| ^
sonictheparallelogram.cpp:14:9: error: invalid types ‘bool[long long int]’ for array subscript
14 | if(a[i] < 0){
| ^
sonictheparallelogram.cpp:16:13: error: expected ‘;’ before ‘}’ token
16 | a = false
| ^
| ;
17 | }
| ~