Borderou de evaluare (job #794251)

Utilizator avatar deniscorman Corman Denis deniscorman IP ascuns
Problemă Cel mai lung subşir comun Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 11 nov. 2024 22:44:59 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:1:1: error: 'include' does not name a type 1 | include<bits/stdc++.h> | ^~~~~~~ main.cpp:5:9: error: 'vector' does not name a type 5 | typedef vector<int> vi; | ^~~~~~ main.cpp: In function 'int main()': main.cpp:11:5: error: 'ios' has not been declared 11 | ios::sync_with_stdio(0); | ^~~ main.cpp:12:5: error: 'cin' was not declared in this scope 12 | cin.tie(0); | ^~~ main.cpp:13:30: error: 'stdin' was not declared in this scope 13 | freopen("cmlsc.in", "r", stdin); | ^~~~~ main.cpp:1:1: note: 'stdin' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'? +++ |+#include <cstdio> 1 | include<bits/stdc++.h> main.cpp:13:5: error: 'freopen' was not declared in this scope 13 | freopen("cmlsc.in", "r", stdin); | ^~~~~~~ main.cpp:14:31: error: 'stdout' was not declared in this scope 14 | freopen("cmlsc.out", "w", stdout); | ^~~~~~ main.cpp:14:31: note: 'stdout' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'? main.cpp:16:5: error: 'vi' was not declared in this scope 16 | vi a(n+1); vi b(m+1); | ^~ main.cpp:16:18: error: expected ';' before 'b' 16 | vi a(n+1); vi b(m+1); | ^~ | ; main.cpp:19:12: error: 'a' was not declared in this scope 19 | cin>>a[i]; | ^ main.cpp:21:12: error: 'b' was not declared in this scope 21 | cin>>b[j]; | ^ main.cpp:26:14: error: 'a' was not declared in this scope 26 | if(a[i] == b[j]) | ^ main.cpp:26:22: error: 'b' was not declared in this scope 26 | if(a[i] == b[j]) | ^ main.cpp:29:22: error: 'max' was not declared in this scope 29 | dp[i][j]=max(dp[i-1][j], dp[i][j-1]); | ^~~ main.cpp:32:5: error: 'cout' was not declared in this scope 32 | cout<<dp[n][m]<<'\n';