Borderou de evaluare (job #2915687)
Utilizator | Pricope Marius MariusAndrei16 | Data | 24 iulie 2022 12:00:02 |
---|---|---|---|
Problema | Diagonale | Status | done |
Runda | Arhiva Monthly | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:13:14: error: 'INT_MIN' was not declared in this scope
13 | int maxSum = INT_MIN;
| ^~~~~~~
main.cpp:3:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
2 | #include <fstream>
+++ |+#include <climits>
3 |
main.cpp: In function 'void read()':
main.cpp:24:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
24 | for (int i = 0; i < N; i++)
| ~~^~~
main.cpp:26:27: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
26 | for (int j = 0; j < N; j++)
| ~~^~~
main.cpp: In function 'int PrincipalDiag()':
main.cpp:82:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
82 | for (int i = 0; i < N; i++)
| ~~^~~
main.cpp: In function 'int SecundarDiag()':
main.cpp:91:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
91 | for (int i = 0; i < N; i++)
| ~~^~~
main.cpp: In function 'int MaxCorner()':
main.cpp:101:15: error: 'INT_MIN' was not declared in this scope
101 | int max = INT_MIN;
| ^~~~~~~
main.cpp:101:15: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
main.cpp: In function 'int main()':
main.cpp:130:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
130 | for (int i = 1; i < N-1; i++)
| ~~^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !