Borderou de evaluare (job #2878000)
Utilizator | Data | 25 martie 2022 17:54:44 | |
---|---|---|---|
Problema | Secventa 5 | Status | done |
Runda | Teme Pregatire ACM Unibuc 2014, Anul I | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'long long int func(int&)':
main.cpp:15:28: warning: comparison of integer expressions of different signedness: 'std::unordered_map<int, int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
15 | while(fr.size()>k){
| ~~~~~~~~~^~
main.cpp:22:10: error: 'i' was not declared in this scope
22 | cnt+=i-j+1;
| ^
main.cpp:22:12: error: 'j' was not declared in this scope
22 | cnt+=i-j+1;
| ^
main.cpp:23:5: warning: no return statement in function returning non-void [-Wreturn-type]
23 | }
| ^
main.cpp: At global scope:
main.cpp:24:5: error: expected unqualified-id before 'return'
24 | return cnt;
| ^~~~~~
main.cpp:25:1: error: expected declaration before '}' token
25 | }
| ^
main.cpp: In function 'int main()':
main.cpp:31:24: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
31 | out<<func(u)-func(l-1)<<endl;
| ~^~
main.cpp:9:21: note: initializing argument 1 of 'long long int func(int&)'
9 | long long func(int &k){
| ~~~~~^
main.cpp:32:5: error: 'reuturn' was not declared in this scope
32 | reuturn 0;
| ^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !