Borderou de evaluare (job #2311563)
Utilizator | Data | 3 ianuarie 2019 13:37:06 | |
---|---|---|---|
Problema | Armonica | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:1: error: 'll' does not name a type
ll a[100];
^~
main.cpp: In function 'int main()':
main.cpp:7:5: error: 'll' was not declared in this scope
ll b,i,k=0;
^~
main.cpp:8:9: error: 'b' was not declared in this scope
in>>b;
^
main.cpp:9:9: error: 'i' was not declared in this scope
for(i=b-1; i>b/2; --i)
^
main.cpp:11:13: error: 'a' was not declared in this scope
a[++k]=i;
^
main.cpp:11:17: error: 'k' was not declared in this scope
a[++k]=i;
^
main.cpp:12:10: error: 'k' was not declared in this scope
out<<k*2+1<<"\n"<<b<<" "<<b<<"\n";
^
main.cpp:13:9: error: 'i' was not declared in this scope
for(i=1; i<=k; ++i)
^
main.cpp:14:14: error: 'a' was not declared in this scope
out<<a[i]<<" "<<(a[i]*b)/(2*a[i]-b)<<"\n"<<(a[i]*b)/(2*a[i]-b)<<" "<<a[i]<<"\n";
^
main.cpp:13:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=1; i<=k; ++i)
^~~
main.cpp:15:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
return 0;
^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !