Borderou de evaluare (job #2923897)

Utilizator AlexandruBenescuAlexandru Benescu AlexandruBenescu Data 20 septembrie 2022 18:21:39
Problema Petrica Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:20:8: error: 'i1' was not declared in this scope; did you mean 'i'? 20 | for (i1 = 1; i1 <= n; i1++) | ^~ | i main.cpp:21:13: error: assignment of function 'double j1(double)' 21 | for (j1 = 0; j1 < (int)G[i1].size(); j1++) | ~~~^~~ main.cpp:21:42: warning: ISO C++ forbids incrementing a pointer of type 'double (*)(double) throw ()' {aka 'double (*)(double)'} [-Wpointer-arith] 21 | for (j1 = 0; j1 < (int)G[i1].size(); j1++) | ^~ main.cpp:21:42: error: lvalue required as increment operand main.cpp:22:12: error: 'i2' was not declared in this scope; did you mean 'i'? 22 | for (i2 = i1; i2 <= n; i2++){ | ^~ | i main.cpp:24:11: error: 'j2' was not declared in this scope; did you mean 'jn'? 24 | j2 = j1 + 1; | ^~ | jn main.cpp:24:19: warning: pointer to a function used in arithmetic [-Wpointer-arith] 24 | j2 = j1 + 1; | ~~~^~~ main.cpp:26:11: error: 'j2' was not declared in this scope; did you mean 'jn'? 26 | j2 = 0; | ^~ | jn Non zero exit status: 1

Ceva nu functioneaza?