Problem | charges |
---|---|
User | tanish |
Submission Time | 2024-02-15 16:22:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
charges.cpp: In function ‘int main()’:
charges.cpp:33:35: error: request for member ‘at’ in ‘arrayOfCharges’, which is of non-class type ‘std::vector<int> [100001]’
33 | if(abs(arrayOfCharges.at(A)) != abs(arrayOfCharges.at(B)) || (arrayOfCharges.at(A) == 0 && arrayOfCharges.at(B) == 0)){
| ^~
charges.cpp:33:64: error: request for member ‘at’ in ‘arrayOfCharges’, which is of non-class type ‘std::vector<int> [100001]’
33 | if(abs(arrayOfCharges.at(A)) != abs(arrayOfCharges.at(B)) || (arrayOfCharges.at(A) == 0 && arrayOfCharges.at(B) == 0)){
| ^~
charges.cpp:33:90: error: request for member ‘at’ in ‘arrayOfCharges’, which is of non-class type ‘std::vector<int> [100001]’
33 | if(abs(arrayOfCharges.at(A)) != abs(arrayOfCharges.at(B)) || (arrayOfCharges.at(A) == 0 && arrayOfCharges.at(B) == 0)){