Problem 4sum
User cobnet
Submission Time 2024-02-11 16:56:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

4sum.cpp: In function ‘int main()’:
4sum.cpp:9:48: error: ‘i’ was not declared in this scope
9 | for (int s = 0; s < a; s++) cin >> Armenia[i];
| ^
4sum.cpp:10:48: error: ‘i’ was not declared in this scope
10 | for (int s = 0; s < b; s++) cin >> Belgium[i];
| ^
4sum.cpp:11:47: error: ‘i’ was not declared in this scope
11 | for (int s = 0; s < c; s++) cin >> Canada[i];
| ^
4sum.cpp:12:49: error: ‘i’ was not declared in this scope
12 | for (int s = 0; s < d; s++) cin >> Djibouti[i];
| ^
4sum.cpp:17:33: error: ‘i’ was not declared in this scope
17 | if (Armenia[i] + Belgium[j] + Canada[k] + Djibouti[l] == 0) {
|