Borderou de evaluare (job #718693)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Dulciuri (clasele 11-12) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 10 mai 2023 23:03:21 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void update(std::vector<long long int>&, int, ll)':
main.cpp:17:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
17 | for(int i = pos; i < bit.size(); i += lsb(i))
| ~~^~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:30:17: error: variable 'std::ifstream cin' has initializer but incomplete type
30 | ifstream cin("dulciuri.in");
| ^
main.cpp:31:18: error: variable 'std::ofstream cout' has initializer but incomplete type
31 | ofstream cout("dulciuri.out");
| ^
main.cpp:65:13: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
65 | else
| ^~~~
main.cpp:68:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
68 | cout << fixed << row_sum + col_sum << "\n";
| ^~~~