Pagini recente » Borderou de evaluare (job #2032211) | Borderou de evaluare (job #2406830) | Borderou de evaluare (job #2830111) | Borderou de evaluare (job #3154278) | Borderou de evaluare (job #2157423)
Borderou de evaluare (job #2157423)
Raport evaluator
Compilare:
user.cpp: In function ‘int solve(int&)’:
user.cpp:77:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
int step = cnt[ch];
^
user.cpp:87:28: warning: array subscript has type ‘char’ [-Wchar-subscripts]
return expr(func[ch], p, vals);
^
user.cpp:94:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
return val[ch];
^
user.cpp: In function ‘int main()’:
user.cpp:108:18: warning: unused variable ‘aux’ [-Wunused-variable]
char aux = fgetc(fi);
^
user.cpp:113:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
cnt[aux] = 1;
^
user.cpp:116:28: warning: array subscript has type ‘char’ [-Wchar-subscripts]
cnt[aux]++;
^
user.cpp:119:38: warning: array subscript has type ‘char’ [-Wchar-subscripts]
fscanf(fi,"%s " ,func[aux] + 1);
^
user.cpp: In function ‘int fact(char*, int&, std::vector<int>)’:
user.cpp:41:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:104:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi,"%s " ,str + 1);
^
user.cpp:109:45: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi,"%d " ,&val[ch - 'a']);
^
user.cpp:119:44: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi,"%s " ,func[aux] + 1);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 1328kb | OK | 10 |
2 | 0ms | 1320kb | OK | 10 |
3 | 0ms | 1324kb | OK | 10 |
4 | 0ms | 1320kb | OK | 10 |
5 | 0ms | 1324kb | OK | 10 |
6 | 0ms | 1320kb | OK | 10 |
7 | 0ms | 1328kb | OK | 10 |
8 | 0ms | 1336kb | OK | 10 |
9 | 0ms | 1328kb | OK | 10 |
10 | 0ms | 1324kb | OK | 10 |
Punctaj total | 100 |