Problem | magiccarps |
---|---|
User | SMJ360 |
Submission Time | 2024-06-20 09:18:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
magiccarps.cpp: In function ‘int main()’:
magiccarps.cpp:7:10: error: expected ‘;’ before ‘pair’
7 | cin >> N
| ^
| ;
8 | pair<int, int> farm[N];
| ~~~~
magiccarps.cpp:10:18: error: expression cannot be used as a function
10 | cin >> C.first();
| ^
magiccarps.cpp:11:19: error: expression cannot be used as a function
11 | cin >> C.second();
| ^
magiccarps.cpp:12:3: error: ‘farm’ was not declared in this scope
12 | farm[i] = C;
| ^~~~
magiccarps.cpp:16:7: error: ‘farm’ was not declared in this scope
16 | if (farm[j].first() > J_track) {
| ^~~~
magiccarps.cpp:21:23: error: redeclaration of ‘int E_track’
21 | int score = J_track, E_track = 0, int totalE = 0;
| ^~~~~~~
magiccarps.cpp:14:19: note: ‘int E_track’ previously declared h