Borderou de evaluare (job #605542)

Utilizator avatar popescuadrian popecuadrianandrei popescuadrian IP ascuns
Problemă Orar Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 6 sept. 2021 12:02:40 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:4:14: error: expected initializer before '<' token 4 | ifstream cin <"orar.in">; | ^ main.cpp:5:15: error: expected initializer before '<' token 5 | ofstream cout <"orar.out">; | ^ main.cpp: In function 'int main()': main.cpp:23:4: error: 'cin' was not declared in this scope 23 | cin>>n; | ^~~ main.cpp:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 2 | #include <algorithm> +++ |+#include <iostream> 3 | using namespace std; main.cpp:46:4: error: 'cout' was not declared in this scope 46 | cout<<suma; | ^~~~ main.cpp:46:4: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? main.cpp:22:18: warning: unused variable 'j' [-Wunused-variable] 22 | long long n,i,j,a,b,q,suma=0; | ^