Borderou de evaluare (job #2220513)
Utilizator | Data | 11 iulie 2018 23:51:57 | |
---|---|---|---|
Problema | Algoritmul lui Euclid | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:3:1: error: ‘uint32_t’ does not name a type
uint32_t gcd(uint32_t a, uint32_t b)
^~~~~~~~
user.cpp:20:8: error: ‘uint32_t’ does not name a type
static uint32_t p = 0x0;
^~~~~~~~
user.cpp:22:32: error: ‘uint32_t’ does not name a type
__attribute__((always_inline)) uint32_t get_nr()
^~~~~~~~
user.cpp: In function ‘int main()’:
user.cpp:46:5: error: ‘uint32_t’ was not declared in this scope
uint32_t T = get_nr() + 1;
^~~~~~~~
user.cpp:50:13: error: ‘T’ was not declared in this scope
while(--T)
^
user.cpp:53:35: error: ‘get_nr’ was not declared in this scope
printf("%d\n", gcd(get_nr(), get_nr()));
^
user.cpp:53:46: error: ‘gcd’ was not declared in this scope
printf("%d\n", gcd(get_nr(), get_nr()));
^
user.cpp:43:38: 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);
^
user.cpp:44:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("euclid2.out", "w", stdout);
^
user.cpp: At global scope:
user.cpp:18:13: warning: ‘inBuffer’ defined but not used [-Wunused-variable]
static char inBuffer[0x8000];
^~~~~~~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !