Borderou de evaluare (job #695877)

Utilizator avatar radu_pip2011 Radu Pipernea radu_pip2011 IP ascuns
Problemă Robot1 (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 16 feb. 2023 10:55:40 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:1:1: error: stray '\' in program 1 | \#include <fstream> | ^ main.cpp:1:2: error: stray '#' in program 1 | \#include <fstream> | ^ main.cpp:1:3: error: 'include' does not name a type 1 | \#include <fstream> | ^~~~~~~ main.cpp:4:1: error: 'ifstream' does not name a type 4 | ifstream cin ("robot1.in"); | ^~~~~~~~ main.cpp:5:1: error: 'ofstream' does not name a type 5 | ofstream cout ("robot1.out"); | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:10:5: error: 'cin' was not declared in this scope 10 | cin>>s; | ^~~ main.cpp:44:17: error: 'cout' was not declared in this scope 44 | cout<<m; | ^~~~ main.cpp:49:9: error: 'cout' was not declared in this scope 49 | cout<<cnt; | ^~~~ main.cpp:57:17: error: 'cout' was not declared in this scope 57 | cout<<"A"; | ^~~~ main.cpp:66:12: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 66 | else if(nr+10-m<6 && nr+10-m>-1) | ^~~~ main.cpp:70:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 70 | m=nr; | ^ main.cpp:75:17: error: 'cout' was not declared in this scope 75 | cout<<"D"<<dif<<"A"; | ^~~~ main.cpp:83:12: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 83 | else if(nr-10+m<6 && nr-10+m>-1) | ^~~~ main.cpp:85:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 85 | m=nr; | ^ main.cpp:87:17: error: 'cout' was not declared in this scope 87 | cout<<"S"<<dif<<"A"; | ^~~~ main.cpp:94:9: error: 'cout' was not declared in this scope 94 | cout<<"T"; | ^~~~