Borderou de evaluare (job #2835130)

Utilizator traiandobrinDobrin Traian traiandobrin Data 18 ianuarie 2022 09:41:22
Problema Cntnk Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:1: error: 'oifstream' does not name a type 5 | oifstream cout("cntnk.out"); | ^~~~~~~~~ main.cpp: In function 'int main()': main.cpp:40:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 40 | for(int i=1;i<=n;++i) | ^~~ main.cpp:42:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 42 | int l1=0,l2=1,ans=0; | ^~~ main.cpp:61:5: error: 'cout' was not declared in this scope 61 | cout<<ans; | ^~~~ main.cpp:2:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 1 | #include <fstream> +++ |+#include <iostream> 2 | Non zero exit status: 1

Ceva nu functioneaza?