Pagini recente » Borderou de evaluare (job #2084147) | Borderou de evaluare (job #1455143) | Borderou de evaluare (job #818300) | Borderou de evaluare (job #1477000) | Borderou de evaluare (job #1833377)
Borderou de evaluare (job #1833377)
Raport evaluator
Compilare:
user.cpp: In function ‘void read()’:
user.cpp:44:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(carte+1);
^
user.cpp:46:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &n);
^
user.cpp:50:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(cuv+1);
^
user.cpp: In function ‘int main()’:
user.cpp:72:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("carte.in", "r", stdin);
^
user.cpp:73:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("carte.out", "w", stdout);
^
user.cpp:75:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &t);
^
/tmp/cctaOjCC.o: In function `read()':
user.cpp:(.text+0x15a): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 196ms | 852kb | Incorect | 0 |
Punctaj total | 0 |