Borderou de evaluare (job #1579116)
Utilizator | Data | 24 ianuarie 2016 14:21:34 | |
---|---|---|---|
Problema | Revsecv | Status | done |
Runda | Algoritmiada 2016 Runda 2 Seniori | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In member function ‘int str::query(long long int, int)’:
user.cpp:26:10: error: ‘cons’ was not declared in this scope
for(cons auto &e : useful[bucket])
^
user.cpp:26:15: error: expected ‘;’ before ‘auto’
for(cons auto &e : useful[bucket])
^
user.cpp:29:5: error: expected primary-expression before ‘return’
return res;
^
user.cpp:29:5: error: expected ‘;’ before ‘return’
user.cpp:29:5: error: expected primary-expression before ‘return’
user.cpp:29:5: error: expected ‘)’ before ‘return’
user.cpp:24:10: warning: unused variable ‘bucket’ [-Wunused-variable]
int bucket = abs(val) % MOD;
^
user.cpp: In function ‘void read_and_build()’:
user.cpp:41:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("revsecv.in", "r", stdin);
^
user.cpp:42:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", s);
^
user.cpp: In function ‘int main()’:
user.cpp:77:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("revsecv.out", "w", stdout);
^
user.cpp: In member function ‘int str::query(long long int, int)’:
user.cpp:30:2: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !