Borderou de evaluare (job #2685691)
Utilizator | Data | 17 decembrie 2020 15:57:33 | |
---|---|---|---|
Problema | Grade | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void solve()':
main.cpp:26:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (first > v.size())
~~~~~~^~~~~~~~~~
main.cpp:33:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (size_t i = 0; i < first; i++)
~~^~~~~~~
main.cpp:39:5: error: 'o' was not declared in this scope
o << index << " " << v[i].second << "\n";
^
main.cpp: In function 'int main()':
main.cpp:56:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (size_t i = 1; i <= n; i++)
~~^~~~
main.cpp:53:8: warning: unused variable 'o' [-Wunused-variable]
FILE* o = fopen("grade.out", "w");
^
main.cpp:54:21: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d", &n);
^
main.cpp:59:22: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d", &k);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !