Kelionė namo 2

Taškai: 0

Compile: FAIL

kelione_namo_2.cpp: In function ‘int main()’: kelione_namo_2.cpp:8:5: error: expected ‘;’ before ‘freopen’ freopen("kelione_namo_2.out","w",stdout) ^ kelione_namo_2.cpp:10:10: error: ‘n’ was not declared in this scope cin>>n>>d; ^ kelione_namo_2.cpp:10:13: error: ‘d’ was not declared in this scope cin>>n>>d; ^ kelione_namo_2.cpp:16:11: error: ‘x’ was not declared in this scope while(x!=n){ ^ kelione_namo_2.cpp:27:13: error: ‘ats’ was not declared in this scope ats++; ^ kelione_namo_2.cpp:32:11: error: ‘ats’ was not declared in this scope cout<<ats; ^ kelione_namo_2.cpp:9:22: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] int n,d,ats=0,x=1; ^

nr.resulttimemessage