Borderou de evaluare (job #807102)

Utilizator avatar anatolie anatolie anatolie IP ascuns
Problemă Cafea Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 30 ian. 2025 00:07:07 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:39:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 39 | for (i = 1; i <= n && kCons != k && sCons != s; ++i) | ^~~ main.cpp:71:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 71 | cout << 1 << endl; | ^~~~ main.cpp:71:7: error: 'cout' was not declared in this scope main.cpp:4:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 3 | #include <algorithm> +++ |+#include <iostream> 4 | using namespace std;