Borderou de evaluare (job #1212128)
Utilizator | Data | 23 iulie 2014 20:56:35 | |
---|---|---|---|
Problema | Sediu | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘std::pair<int, int> df(int)’:
user.cpp:16:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < vec[p].size(); i++)
^
user.cpp:26:44: error: ‘n’ was not declared in this scope
return c[p] = make_pair(cnt, max(maxc, n - cnt));
^
user.cpp:27:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:35:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi, "%d\n", &n);
^
user.cpp:44:38: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi, "%d %d\n", &a, &b);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !