Borderou de evaluare (job #2220529)
Utilizator | Data | 12 iulie 2018 00:24:57 | |
---|---|---|---|
Problema | Algoritmul lui Euclid | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int get_nr()’:
user.cpp:28:23: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses]
while(inBuffer[p] < 0x30 | inBuffer[p] > 0x39)
~~~~~~~~~~~~^~~~~~
user.cpp:33:23: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
while(inBuffer[p] > 0x2F & inBuffer[p] < 0x3A)
~~~~~~~~~~~~^~~~~~
user.cpp: In function ‘int main()’:
user.cpp:61:5: error: ‘s’ was not declared in this scope
s
^
user.cpp:62:33: error: ‘T’ was not declared in this scope
for(int T = get_nr() + 1; --T; itoa(gcd(get_nr(), get_nr())));
^
user.cpp:62:65: error: expected ‘;’ before ‘)’ token
for(int T = get_nr() + 1; --T; itoa(gcd(get_nr(), get_nr())));
^
user.cpp: At global scope:
user.cpp:45:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void itoa(int x)
^~~~
user.cpp:24:36: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) int get_nr()
^~~~~~
user.cpp: In function ‘int get_nr()’:
user.cpp:30:23: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
++p != 0x8000 || (fread(inBuffer, 0x1, 0x8000, stdin), p = 0x0);
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
user.cpp:37:23: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
++p != 0x8000 || (fread(inBuffer, 0x1, 0x8000, stdin), p = 0x0);
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
user.cpp: In function ‘int main()’:
user.cpp:59: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:60: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);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !