Problem illuminate
User wahjsodhowasd
Submission Time 2026-02-20 15:00:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

illuminate.cpp: In function ‘int main()’:
illuminate.cpp:12:1: error: expected ‘,’ or ‘;’ before ‘for’
12 | for (int j=0;j<C;j++){
| ^~~
illuminate.cpp:12:14: error: ‘j’ was not declared in this scope
12 | for (int j=0;j<C;j++){
| ^
illuminate.cpp:22:17: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
22 | for(int i=0;i<v.size;i++){
| ~~^~~~
| ()
illuminate.cpp:24:9: error: ‘curr’ was not declared in this scope; did you mean ‘curr_C’?
24 | Ans+=(C-curr)*(C-curr);
| ^~~~
| curr_C
illuminate.cpp:28:18: error: ‘curr’ was not