Borderou de evaluare (job #2976321)

Utilizator robertapopescuPopescu Roberta Andreea robertapopescu Data 8 februarie 2023 22:32:45
Problema Snooker Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void Citire()': main.cpp:15:16: error: 'K' was not declared in this scope 15 | for(int i=0;i<K;i++) | ^ main.cpp: In function 'void Afisare()': main.cpp:23:22: error: expected unqualified-id before '[' token 23 | fout << atan2(tinte.[i].y - alb.y, tinte[i].x - alb.x) << "\n"; | ^ main.cpp:23:23: error: 'i' was not declared in this scope 23 | fout << atan2(tinte.[i].y - alb.y, tinte[i].x - alb.x) << "\n"; | ^ main.cpp: In function 'void copietinte(int, int, int)': main.cpp:69:36: error: cannot convert 'punct*' to 'double' in assignment 69 | tinte[pozt].x = x + coord_bile_y + x; | ~~~~~~~~~~~~~~~~~^~~ | | | punct* main.cpp:70:38: error: cannot convert 'punct*' to 'double' in assignment 70 | tinte[pozt++].y = y + coord_bile_y + y; | ~~~~~~~~~~~~~~~~~^~~ | | | punct* main.cpp:74:38: error: cannot convert 'punct*' to 'double' in assignment 74 | tinte[pozt].x = x + coord_bile_x_y + x; | ~~~~~~~~~~~~~~~~~~~^~~ | | | punct* main.cpp:75:40: error: cannot convert 'punct*' to 'double' in assignment 75 | tinte[pozt++].y = y + coord_bile_x_y + y; | ~~~~~~~~~~~~~~~~~~~^~~ | | | punct* main.cpp: In function 'bool intersectie(punct, punct)': main.cpp:92:21: error: 'toate' was not declared in this scope 92 | valoare = abs(a * toate[i].x + b * toate[i].y + c); | ^~~~~ main.cpp:93:83: error: request for member 'y' in 'i', which is of non-class type 'int' 93 | dist1 = (toate[i].x - q.x) * (toate[i].x - q.x) + (toate[i].y - q.y) * (toate[i.y] - q.y); | ^ main.cpp:94:83: error: request for member 'y' in 'i', which is of non-class type 'int' 94 | dist2 = (toate[i].x - p.x) * (toate[i].x - p.x) + (toate[i].y - p.y) * (toate[i.y] - p.y); | ^ main.cpp: In function 'int main()': main.cpp:130:17: warning: left operand of comma operator has no effect [-Wunused-value] 130 | for (int i=-2; i , 3; I++) | ^ main.cpp:130:24: error: 'I' was not declared in this scope 130 | for (int i=-2; i , 3; I++) | ^ main.cpp:145:36: error: 'j' was not declared in this scope Non zero exit status: 1

Ceva nu functioneaza?