Borderou de evaluare (job #2784961)

Utilizator mihneadv@yahoo.comDavid Mihnea Stefan [email protected] Data 17 octombrie 2021 19:10:30
Problema Jocul NIM Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:1:2: error: invalid preprocessing directive #includefstream 1 | #includefstream | ^~~~~~~~~~~~~~ main.cpp:3:1: error: 'ifstream' does not name a type 3 | ifstream cin(nim.in); | ^~~~~~~~ main.cpp:4:1: error: 'ofstream' does not name a type 4 | ofstream cout(nim.out); | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:7:12: error: 'cin' was not declared in this scope 7 | int t; cin t; | ^~~ main.cpp:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'? +++ |+#include <iostream> 1 | #includefstream main.cpp:8:21: error: expected ';' before 't' 8 | for(int i = 0; i t; i++) | ^ ~ | ; main.cpp:8:23: warning: for increment expression has no effect [-Wunused-value] 8 | for(int i = 0; i t; i++) | ^ main.cpp:8:24: error: expected ')' before ';' token 8 | for(int i = 0; i t; i++) | ~ ^ | ) main.cpp:8:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 8 | for(int i = 0; i t; i++) | ^~~ main.cpp:8:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 8 | for(int i = 0; i t; i++) | ^ main.cpp:8:26: error: 'i' was not declared in this scope Non zero exit status: 1

Ceva nu functioneaza?