Borderou de evaluare (job #2510590)

Utilizator david.teacaDavid Stefan Teaca david.teaca Data 16 decembrie 2019 21:57:49
Problema PetSoft Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:1:1: error: stray '\177' in program #include <bits/stdc++.h> ^ main.cpp:1:2: error: stray '#' in program #include <bits/stdc++.h> ^ main.cpp:1:3: error: 'include' does not name a type #include <bits/stdc++.h> ^~~~~~~ main.cpp:4:1: error: 'ifstream' does not name a type ifstream in("petsoft.in"); ^~~~~~~~ main.cpp:5:1: error: 'ofstream' does not name a type ofstream out("petsoft.out"); ^~~~~~~~ main.cpp:7:1: error: 'vector' does not name a type vector<int> v[N]; ^~~~~~ main.cpp: In function 'int getDP()': main.cpp:15:71: error: 'max' was not declared in this scope c[i][j] = max(dp[1][a[i]]+c[i+1][j], dp[1][a[j]]+c[i][j-1]); ^ main.cpp: In function 'void dfs(int)': main.cpp:23:19: error: 'v' was not declared in this scope for (auto it: v[x]) ^ main.cpp:27:19: error: 'v' was not declared in this scope for (auto it: v[x]) ^ main.cpp:29:19: error: 'sort' was not declared in this scope sort(a+1,a+m+1); ^ main.cpp:32:19: error: 'v' was not declared in this scope for (auto it: v[x]) ^ main.cpp: In function 'int main()': main.cpp:41:5: error: 'in' was not declared in this scope in >> n; ^~ main.cpp:46:9: error: 'v' was not declared in this scope v[x].push_back(i); ^ main.cpp:49:5: error: 'out' was not declared in this scope out << dp[0][1]; ^~~ Non zero exit status: 1

Ceva nu functioneaza?