Borderou de evaluare (job #1248188)

Utilizator sorin2kSorin Nutu sorin2k Data 24 octombrie 2014 19:21:11
Problema Ben Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:23:13: error: no match for ‘operator[]’ (operand types are ‘int [30002]’ and ‘std::pair<int, int>’) start[mars[interv[i]]++; ^ user.cpp:23:26: error: expected ‘]’ before ‘;’ token start[mars[interv[i]]++; ^ user.cpp:13:12: warning: unused variable ‘j’ [-Wunused-variable] int n, i, j, cnt, maxBenz = 0, max = 0; ^ user.cpp:13:15: warning: unused variable ‘cnt’ [-Wunused-variable] int n, i, j, cnt, maxBenz = 0, max = 0; ^ user.cpp:11:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ben.in", "r", stdin); ^ user.cpp:12:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ben.out", "w", stdout); ^

Ceva nu functioneaza?