Borderou de evaluare (job #3331894)
| Utilizator | Data | 1 ianuarie 2026 15:06:43 | |
|---|---|---|---|
| Problema | Algoritmul lui Euclid | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
In file included from /usr/include/c++/12.2.1/cassert:44,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:33,
from main.cpp:30:
/usr/include/assert.h:67:13: error: conflicting declaration of C function 'void __assert_fail(const char*, const char*, long long unsigned int, const char*)'
67 | extern void __assert_fail (const char *__assertion, const char *__file,
| ^~~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/cassert:44,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:33,
from main.cpp:1:
/usr/include/assert.h:67:13: note: previous declaration 'void __assert_fail(const char*, const char*, unsigned int, const char*)'
67 | extern void __assert_fail (const char *__assertion, const char *__file,
| ^~~~~~~~~~~~~
/usr/include/assert.h:72:13: error: conflicting declaration of C function 'void __assert_perror_fail(long long int, const char*, long long unsigned int, const char*)'
72 | extern void __assert_perror_fail (int __errnum, const char *__file,
| ^~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:72:13: note: previous declaration 'void __assert_perror_fail(int, const char*, unsigned int, const char*)'
72 | extern void __assert_perror_fail (int __errnum, const char *__file,
| ^~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:79:13: error: conflicting declaration of C function 'void __assert(const char*, const char*, long long int)'
79 | extern void __assert (const char *__assertion, const char *__file, int __line)
| ^~~~~~~~
/usr/include/assert.h:79:13: note: previous declaration 'void __assert(const char*, const char*, int)'
79 | extern void __assert (const char *__assertion, const char *__file, int __line)
| ^~~~~~~~
main.cpp:35:10: error: redefinition of 'std::ifstream fin'
35 | ifstream fin("euclid2.in");
| ^~~
main.cpp:6:10: note: 'std::ifstream fin' previously declared here
6 | ifstream fin("euclid2.in");
| ^~~
main.cpp:36:10: error: redefinition of 'std::ofstream fout'
36 | ofstream fout("euclid2.out");
| ^~~~
main.cpp:7:10: note: 'std::ofstream fout' previously declared here
7 | ofstream fout("euclid2.out");
| ^~~~
main.cpp:37:5: error: redefinition of 'long long int cmmdc(long long int, long long int)'
37 | int cmmdc(int a, int b)
| ^~~~~
main.cpp:8:5: note: 'long long int cmmdc(long long int, long long int)' previously defined here
8 | int cmmdc(int a, int b)
| ^~~~~
main.cpp:48:9: error: redefinition of 'int32_t main()'
48 | int32_t main()
| ^~~~
main.cpp:19:9: note: 'int32_t main()' previously defined here
19 | int32_t main()
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
