Borderou de evaluare (job #3313248)
| Utilizator | Data | 2 octombrie 2025 22:40:54 | |
|---|---|---|---|
| Problema | Tastatura | Status | done |
| Runda | Arhiva Monthly | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void add(std::string, int, trie*)':
main.cpp:23:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | if(pos==s.size()-1)
| ~~~^~~~~~~~~~~~
main.cpp: In function 'void read(int)':
main.cpp:36:14: error: 'reverse' is not a member of 'std'
36 | std::reverse(local.begin(), local.end());
| ^~~~~~~
main.cpp: In function 'int solve_dp(std::string)':
main.cpp:58:10: error: 'vector' is not a member of 'std'
58 | std::vector<int>dp(target.size()+1, INF);//dp[i] pana la a i-a pozitie (dp[1] coresp la target[0])
| ^~~~~~
main.cpp:2:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
1 | #include<fstream>
+++ |+#include <vector>
2 | #include<string>
main.cpp:58:17: error: expected primary-expression before 'int'
58 | std::vector<int>dp(target.size()+1, INF);//dp[i] pana la a i-a pozitie (dp[1] coresp la target[0])
| ^~~
main.cpp:59:5: error: 'dp' was not declared in this scope
59 | dp[0]=0;
| ^~
main.cpp:60:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for(int i=1; i<=target.size(); ++i)
| ~^~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
