Borderou de evaluare (job #2328113)
| Utilizator | Data | 25 ianuarie 2019 13:38:03 | |
|---|---|---|---|
| Problema | Algoritmul lui Euclid | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:13:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main()
^
main.cpp: In function 'int main()':
main.cpp:19:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
for(a=A(),b=A();r=a%b;a=b,b=r);
^
main.cpp:19:6: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(a=A(),b=A();r=a%b;a=b,b=r);
^~~
main.cpp:20: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++)
^~~
main.cpp:23:6: error: lvalue required as increment operand
*p++=e[j];
^~
main.cpp:24:5: error: lvalue required as increment operand
*p++='\n';
^~
main.cpp:16:92: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("euclid2.in","r",stdin),freopen("euclid2.out","w",stdout),fread(p,1,M,stdin),t=A();
^
main.cpp:16:92: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:16:92: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
