Borderou de evaluare (job #2601609)

Utilizator Rares15Ioan Rares Teodor Rares15 Data 14 aprilie 2020 19:47:50
Problema CMMDC Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:7:19: error: request for member 'in' in 'cmmdc', which is of non-class type 'int' ifstream f(cmmdc.in); ^~ main.cpp:8:19: error: request for member 'out' in 'cmmdc', which is of non-class type 'int' ofstream g(cmmdc.out); ^~~ main.cpp:11:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(i=a;i<b;i++); ^~~ main.cpp:12:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' if(a%i==0&&b%i=0); ^~ main.cpp:12:20: error: lvalue required as left operand of assignment if(a%i==0&&b%i=0); ^ main.cpp:14:5: error: expected ';' before 'if' if(cmmdc != i) ^~ main.cpp:16:1: error: 'else' without a previous 'if' else ^~~~ main.cpp:17:1: error: 'w' was not declared in this scope w<<0; ^ main.cpp:19:2: error: expected ';' before '}' token } ^ Non zero exit status: 1

Ceva nu functioneaza?