Borderou de evaluare (job #1462364)
Utilizator | Data | 17 iulie 2015 20:43:21 | |
---|---|---|---|
Problema | Take 5 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int find(long long unsigned int, int)’:
user.cpp:19:13: error: ‘Hash’ was not declared in this scope
foreach(Hash[list])
^
user.cpp:6:35: note: in definition of macro ‘foreach’
#define foreach(G) for(decltype( (G).begin() ) it = (G).begin(); it != (G).end(); ++it)
^
user.cpp:6:51: error: invalid type in declaration before ‘=’ token
#define foreach(G) for(decltype( (G).begin() ) it = (G).begin(); it != (G).end(); ++it)
^
user.cpp:19:5: note: in expansion of macro ‘foreach’
foreach(Hash[list])
^
user.cpp:20:15: error: base operand of ‘->’ is not a pointer
if (it->first == key && it->second < pos) ++ret;
^
user.cpp:20:35: error: base operand of ‘->’ is not a pointer
if (it->first == key && it->second < pos) ++ret;
^
user.cpp: In function ‘int main()’:
user.cpp:29:21: warning: unused variable ‘key’ [-Wunused-variable]
for (int i = 1, key; i <= N; ++i){
^
user.cpp:25:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("take5.in", "r", stdin);
^
user.cpp:26:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("take5.out", "w", stdout);
^
user.cpp:28:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %llu", &N, &S);
^
user.cpp:30:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !