Pagini recente » Borderou de evaluare (job #2631872) | Borderou de evaluare (job #664505) | Borderou de evaluare (job #1913344) | Borderou de evaluare (job #2931404) | Borderou de evaluare (job #1441025)
Borderou de evaluare (job #1441025)
Raport evaluator
Compilare:
user.cpp: In function ‘bool verify(int)’:
user.cpp:65:13: warning: unused variable ‘xxx’ [-Wunused-variable]
int xxx = 3;
^
user.cpp:81:13: warning: unused variable ‘xx’ [-Wunused-variable]
int xx = 0;
^
user.cpp:86:9: warning: unused variable ‘xxxx’ [-Wunused-variable]
int xxxx = 0;
^
user.cpp: In function ‘void citeste(int)’:
user.cpp:113:9: warning: unused variable ‘xxx’ [-Wunused-variable]
int xxx = 0;
^
user.cpp: In function ‘int main()’:
user.cpp:132:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=]
scanf("%d\n", &n);
^
user.cpp: In function ‘bool verify(int)’:
user.cpp:87:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int cauta()’:
user.cpp:105:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘void citeste(int)’:
user.cpp:110:24: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(s, 60, stdin);
^
user.cpp: In function ‘int main()’:
user.cpp:127:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("largestroot.in", "r", stdin);
^
user.cpp:128:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("largestroot.out", "w", stdout);
^
user.cpp:129:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &T);
^
user.cpp:132:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &n);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 4ms | 380kb | Incorect | 0 |
Punctaj total | 0 |