Borderou de evaluare (job #2328004)
| Utilizator | Data | 25 ianuarie 2019 12:13:58 | |
|---|---|---|---|
| Problema | Algoritmul lui Euclid | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:7:91: error: 'A' was not declared in this scope
freopen("euclid2.in","r",stdin),freopen("euclid2.out","w",stdout),fread(p,1,M,stdin),t=A();
^
main.cpp:16:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
for(;r=a%b;a=b,b=r);
^
main.cpp:16:6: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(;r=a%b;a=b,b=r);
^~~
main.cpp:17:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(j=0;b;b/=10,j++)
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
