Borderou de evaluare (job #1407488)

Utilizator RaduDoStochitoiu Radu RaduDo Data 29 martie 2015 18:51:48
Problema Tempest Status done
Runda ONIS 2015, Runda 2 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:47:17: error: ‘class std::vector<std::pair<long long int, long long int> >’ has no member named ‘first’ if(!ap[G[x].first] || ap[G[x].first] > ap[x] + G[x].second) ^ user.cpp:47:35: error: ‘class std::vector<std::pair<long long int, long long int> >’ has no member named ‘first’ if(!ap[G[x].first] || ap[G[x].first] > ap[x] + G[x].second) ^ user.cpp:47:57: error: ‘class std::vector<std::pair<long long int, long long int> >’ has no member named ‘second’ if(!ap[G[x].first] || ap[G[x].first] > ap[x] + G[x].second) ^ user.cpp:49:18: error: ‘class std::vector<std::pair<long long int, long long int> >’ has no member named ‘first’ q.push(G[x].first); ^ user.cpp:50:14: error: ‘class std::vector<std::pair<long long int, long long int> >’ has no member named ‘first’ ap[G[x].first] = ap[x] + G[x].second; ^ user.cpp:50:36: error: ‘class std::vector<std::pair<long long int, long long int> >’ has no member named ‘second’ ap[G[x].first] = ap[x] + G[x].second; ^ user.cpp:51:19: error: ‘class std::vector<std::pair<long long int, long long int> >’ has no member named ‘first’ if(!ap2[G[x].first] && ap[G[x].first] <= cost) ^ user.cpp:51:37: error: ‘class std::vector<std::pair<long long int, long long int> >’ has no member named ‘first’ if(!ap2[G[x].first] && ap[G[x].first] <= cost) ^ user.cpp:53:16: error: ‘class std::vector<std::pair<long long int, long long int> >’ has no member named ‘first’ ap2[G[x].first] = 1; ^ user.cpp:20:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tempest.in", "r", stdin); ^ user.cpp:21:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tempest.out", "w", stdout); ^ user.cpp:22:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &T); ^ user.cpp:26:44: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld%lld%lld%lld", &n, &m, &S, &D); ^ user.cpp:29:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld%lld%lld",&u[i].x, &u[i].y, &u[i].c); ^ user.cpp:34:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &K); ^ user.cpp:37:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &x); ^

Ceva nu functioneaza?