Borderou de evaluare (job #2874296)
Utilizator | Data | 19 martie 2022 13:39:54 | |
---|---|---|---|
Problema | Countperm | Status | done |
Runda | Algoritmiada 2022 - Runda 3 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int BinarySearch2(std::vector<int>, int, int)':
main.cpp:34:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | if(v[mid] < x and (mid == v.size()-1 or v[mid+1] > x))
| ~~~~^~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:80:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
80 | for(auto elem : mare[it.c])
| ^~~
main.cpp:83:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
83 | cnt = (cnt + BinarySearch2(mic[it.b], elem, it.poz)) % MOD;
| ^~~
main.cpp:83:35: error: 'it' was not declared in this scope; did you mean 'int'?
83 | cnt = (cnt + BinarySearch2(mic[it.b], elem, it.poz)) % MOD;
| ^~
| int
main.cpp:83:42: error: 'elem' was not declared in this scope
83 | cnt = (cnt + BinarySearch2(mic[it.b], elem, it.poz)) % MOD;
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !