Borderou de evaluare (job #2917126)

Utilizator IgnusIgnacy Kus Ignus Data 3 august 2022 14:29:47
Problema Expand 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:5:2: error: 'sys' was not declared in this scope 5 | sys.stdin = open("expand.in", "r") | ^~~ main.cpp:5:14: error: 'open' was not declared in this scope; did you mean 'popen'? 5 | sys.stdin = open("expand.in", "r") | ^~~~ | popen main.cpp:8:9: error: 'n' was not declared in this scope 8 | cin >> n >> n; | ^ main.cpp:13:10: error: 'a' was not declared in this scope 13 | cin >> a[i].first >> a[i].second; | ^ main.cpp:15:19: error: 'a' was not declared in this scope 15 | long double r1= (a[1].second-a[0].second)/(a[1].first-a[0].first); | ^ main.cpp:25:4: error: 'b' was not declared in this scope 25 | b[i].first=a[i].first-d*r/sqrt(d*d+1)*clw; | ^ main.cpp:28:4: error: 'b' was not declared in this scope 28 | b[i].first=a[i].first+d*r/sqrt(d*d+1)*clw; | ^ main.cpp:34:24: error: 'b' was not declared in this scope 34 | long double d = -1/((b[(n+i-1)%n].second-b[(n+i+1)%n].second)/(b[(n+i-1)%n].first-b[(n+i+1)%n].first)); | ^ main.cpp:46:11: error: 'b' was not declared in this scope 46 | cout << b[i].first << ' ' << b[i].second << '\n'; | ^ Non zero exit status: 1

Ceva nu functioneaza?