Borderou de evaluare (job #647545)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Points 2 (clasele 8-9) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 17 apr. 2022 13:27:13 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:38: error: declaration of 'v' as array of references
11 | long long check(int mask, long long &v[]){
| ^
main.cpp: In function 'long long int check(...)':
main.cpp:14:12: error: 'mask' was not declared in this scope
14 | if(mask&(1 << i)){
| ^~~~
main.cpp:15:18: error: 'v' was not declared in this scope
15 | sum+=v[i];
| ^
main.cpp: In function 'int main()':
main.cpp:42:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
42 | for(int i=0;i<sum1.size();++i){
| ~^~~~~~~~~~~~