Borderou de evaluare (job #622802)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Baza ascunsă (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 22 dec. 2021 14:53:45 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:14:17: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare]
14 | for(int i=0;i<strlen(m);i++)
| ~^~~~~~~~~~
main.cpp:26:10: error: 'y' was not declared in this scope
26 | while(y<n)
| ^
main.cpp:10:19: warning: unused variable 'i' [-Wunused-variable]
10 | int b=0,baza=2,i,put;
| ^
main.cpp:8:17: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | freopen ("ascunsa.in", "r", stdin);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:9:13: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | freopen ("ascunsa.out", "w", stdout);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~