Problem gotoschool_ex
User DoubleShaurya
Submission Time 2024-03-25 16:40:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gotoschool_ex.cpp: In function ‘int main()’:
gotoschool_ex.cpp:8:21: error: conflicting declaration ‘std::vector<long long int> A’
8 | vector<long long> A(N); // Store only the values
| ^
gotoschool_ex.cpp:5:16: note: previous declaration as ‘long long int A’
5 | long long N, A;
| ^
gotoschool_ex.cpp:11:15: error: invalid types ‘long long int[long long int]’ for array subscript
11 | cin >> A[i];
| ^
gotoschool_ex.cpp:15:16: error: invalid types ‘long long int[long long int]’ for array subscript
15 | cout << A[i] << " "; // Print the value as the index
| ^