Borderou de evaluare (job #2320915)
Utilizator | Data | 15 ianuarie 2019 13:35:17 | |
---|---|---|---|
Problema | Troll | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int findMaxIntervals()':
main.cpp:39:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < cpt.size(); ++i)
~~^~~~~~~~~~~~
main.cpp:52:20: error: 'INT_MIN' was not declared in this scope
int maxValue = INT_MIN, maxInt = 0;
^~~~~~~
main.cpp:56:13: error: 'maxInt' was not declared in this scope
maxInt = intv[i].leftInt + intv[i].rightInt + 1;
^~~~~~
main.cpp:58:13: error: 'maxInt' was not declared in this scope
maxInt = max(maxInt, intv[i].leftInt + intv[i].rightInt + 1);
^~~~~~
main.cpp:61:12: error: 'maxInt' was not declared in this scope
return maxInt;
^~~~~~
main.cpp: In function 'int main()':
main.cpp:65:13: error: 'INT_MIN' was not declared in this scope
int M = INT_MIN;
^~~~~~~
main.cpp:66:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("troll.in", "r", stdin);
^
main.cpp:67:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("troll.out", "w", stdout);
^
main.cpp:69:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
main.cpp:71:64: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &intv[i].x, &intv[i].y, &intv[i].val);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !