Borderou de evaluare (job #848306)

Utilizator avatar andrei-2010 Andrei andrei-2010 IP ascuns
Problemă Parola (clasa a 5-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 9 ian. 2026 12:03:34 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:1:11: error: stray '#' in program 1 | Parola....#include <fstream> | ^ main.cpp:1:1: error: 'Parola' does not name a type 1 | Parola....#include <fstream> | ^~~~~~ main.cpp:3:1: error: 'ifstream' does not name a type 3 | ifstream fin("parola.in"); | ^~~~~~~~ main.cpp:4:1: error: 'ofstream' does not name a type 4 | ofstream fout("parola.out"); | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:9:1: error: 'fin' was not declared in this scope 9 | fin>>k>>n>>m; | ^~~ main.cpp:23:5: error: 'fout' was not declared in this scope 23 | fout<<a[i]; | ^~~~ main.cpp:25:1: error: 'fout' was not declared in this scope 25 | fout<<b[1]; | ^~~~ main.cpp:8:47: warning: unused variable 'r' [-Wunused-variable] 8 | int k, n, m, cnta = 0, cntb = 0, s, p = 2, i, r = 0, nr = 0, cp1, cp2, t, q, ok = 1,j = 1; | ^ main.cpp:8:54: warning: unused variable 'nr' [-Wunused-variable] 8 | int k, n, m, cnta = 0, cntb = 0, s, p = 2, i, r = 0, nr = 0, cp1, cp2, t, q, ok = 1,j = 1; | ^~ main.cpp:8:72: warning: unused variable 't' [-Wunused-variable] 8 | int k, n, m, cnta = 0, cntb = 0, s, p = 2, i, r = 0, nr = 0, cp1, cp2, t, q, ok = 1,j = 1; | ^ main.cpp:8:78: warning: unused variable 'ok' [-Wunused-variable] 8 | int k, n, m, cnta = 0, cntb = 0, s, p = 2, i, r = 0, nr = 0, cp1, cp2, t, q, ok = 1,j = 1; | ^~