Borderou de evaluare (job #1263767)

Utilizator SzymonSidorSzymonSidor SzymonSidor Data 15 noiembrie 2014 03:57:22
Problema Placute Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:28: error: ‘MAX’ was not declared in this scope pair <long long, int> porc[MAX]; ^ user.cpp: In function ‘int main()’: user.cpp:16:16: error: ‘porc’ was not declared in this scope cin >> porc[i].first >> porc[i].second; ^ user.cpp:18:10: error: ‘porc’ was not declared in this scope sort(porc, porc + n); ^ user.cpp:24:5: error: expected ‘;’ before ‘for’ for (int index = 0; a[0] < n && a[1] < n; index ^= 1) ^ user.cpp:24:34: warning: statement has no effect [-Wunused-value] for (int index = 0; a[0] < n && a[1] < n; index ^= 1) ^ user.cpp:24:47: error: ‘index’ was not declared in this scope for (int index = 0; a[0] < n && a[1] < n; index ^= 1) ^ user.cpp:24:57: error: expected ‘;’ before ‘)’ token for (int index = 0; a[0] < n && a[1] < n; index ^= 1) ^

Ceva nu functioneaza?