Borderou de evaluare (job #814606)

Utilizator avatar Arcopie Birghilescu Alexandru Arcopie IP ascuns
Problemă Semipalindrom Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 13 mar. 2025 19:12:41 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:40:9: error: 'cout' was not declared in this scope 40 | cout<<n; | ^~~~ main.cpp:10:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 9 | #include <fstream> +++ |+#include <iostream> 10 | main.cpp:16:9: warning: unused variable 'ok' [-Wunused-variable] 16 | int ok=1; | ^~ main.cpp:17:17: warning: unused variable 'i' [-Wunused-variable] 17 | long long n,i,j,cn,k=0; | ^ main.cpp:17:19: warning: unused variable 'j' [-Wunused-variable] 17 | long long n,i,j,cn,k=0; | ^ main.cpp:19:9: warning: unused variable 'v' [-Wunused-variable] 19 | int v[10]; | ^ main.cpp:22:9: warning: unused variable 'a' [-Wunused-variable] 22 | int a,b; | ^ main.cpp:22:11: warning: unused variable 'b' [-Wunused-variable] 22 | int a,b; | ^