Borderou de evaluare (job #3260517)
Utilizator | Data | 2 decembrie 2024 17:24:53 | |
---|---|---|---|
Problema | Datorii2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void add_componenta(std::vector<std::pair<int, int> >&, std::vector<std::pair<int, int> >&)':
main.cpp:37:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | while(i1 < p.size() && i2 < n.size()){
| ~~~^~~~~~~~~~
main.cpp:37:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | while(i1 < p.size() && i2 < n.size()){
| ~~~^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:68:72: error: 'INT_MAX' was not declared in this scope
68 | for(int i = 0; i < (1 << n); i++){ dp[i] = n; p[i] = -1; smin[i] = INT_MAX; }
| ^~~~~~~
main.cpp:7:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
6 | #include <cmath>
+++ |+#include <climits>
7 | // #include <bits/stdc++.h>
main.cpp:115:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<operatie>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
115 | for(int i = 0; i < sol.size(); i++){
| ~~^~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !