Pagini recente » Borderou de evaluare (job #116555) | Borderou de evaluare (job #437694) | Borderou de evaluare (job #2329685) | Borderou de evaluare (job #2683017) | Borderou de evaluare (job #1985993)
Borderou de evaluare (job #1985993)
Raport evaluator
Compilare:
user.cpp: In function ‘long long int fromVector(std::vector<int>&)’:
user.cpp:19:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < digits.size(); i++) {
^
user.cpp: In function ‘long long int fromVector(int, std::vector<int>&)’:
user.cpp:27:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < digits.size(); i++) {
^
user.cpp: In function ‘long long int max_perm(int, std::vector<int>)’:
user.cpp:37:15: warning: unused variable ‘n’ [-Wunused-variable]
long long n = fromVector(front, digits);
^
user.cpp:38:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘long long int min_perm(int, std::vector<int>)’:
user.cpp:44:15: warning: unused variable ‘n’ [-Wunused-variable]
long long n = fromVector(front, digits);
^
user.cpp:45:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:64:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < digits.size() - 1; ++i) {
^
user.cpp:51:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("gap.in", "r", stdin);
^
user.cpp:52:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("gap.out", "w", stdout);
^
user.cpp:54:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &T);
^
user.cpp:58:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &n);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 1936ms | 280kb | Incorect | 0 |
Punctaj total | 0 |