Borderou de evaluare (job #2978981)
Utilizator | Data | 14 februarie 2023 18:20:29 | |
---|---|---|---|
Problema | Floyd-Warshall/Roy-Floyd | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:3:16: error: 'INT_MAX' was not declared in this scope
3 | #define intmax INT_MAX/2-1
| ^~~~~~~
main.cpp:22:27: note: in expansion of macro 'intmax'
22 | c[i][j] = intmax;
| ^~~~~~
main.cpp:3:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
2 | #include <algorithm>
+++ |+#include <climits>
3 | #define intmax INT_MAX/2-1
main.cpp:3:16: error: 'INT_MAX' was not declared in this scope
3 | #define intmax INT_MAX/2-1
| ^~~~~~~
main.cpp:33:37: note: in expansion of macro 'intmax'
33 | if(i != j && c[i][j] == intmax)
| ^~~~~~
main.cpp:3:16: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
3 | #define intmax INT_MAX/2-1
| ^~~~~~~
main.cpp:33:37: note: in expansion of macro 'intmax'
33 | if(i != j && c[i][j] == intmax)
| ^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !