Borderou de evaluare (job #2925394)

Utilizator stefanscdStefan stefanscd Data 15 octombrie 2022 09:39:13
Problema Cel mai lung subsir comun Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int lcs(int*, int*, int, int)': main.cpp:12:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 12 | for(i=1;i<=m;++i) | ^~~ main.cpp:19:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 19 | return L[m][n]; | ^~~~~~ main.cpp: In function 'int main()': main.cpp:33:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 33 | for(int i=1;i<=n;++i) | ^~~ main.cpp:35:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 35 | cin.close(); | ^~~ main.cpp:35:5: error: 'cin' was not declared in this scope main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 1 | #include <fstream> +++ |+#include <iostream> 2 | using namespace std; main.cpp:39:5: error: 'cout' was not declared in this scope 39 | cout.close(); | ^~~~ main.cpp:39:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? Non zero exit status: 1

Ceva nu functioneaza?