Borderou de evaluare (job #1286734)
Utilizator | Data | 7 decembrie 2014 13:04:08 | |
---|---|---|---|
Problema | Perioada01 | Status | done |
Runda | Algoritmiada 2015 - Runda 1, Seniori | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void pref()’:
user.cpp:25:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 2; i < b.size(); i++) {
^
user.cpp: In function ‘int main()’:
user.cpp:52:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < a.size(); i++) {
^
user.cpp:91:6: error: ‘k’ was not declared in this scope
if (k == 0 || (b.size()-1) % k != 0) {
^
user.cpp:34:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("perioada01.in","r",stdin);
^
user.cpp:35:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("perioada01.out","w",stdout);
^
user.cpp:37:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &p);
^
user.cpp:40:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !