Borderou de evaluare (job #622796)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Baza ascunsă (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 22 dec. 2021 14:51:28 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:10:4: error: 'intb' was not declared in this scope; did you mean 'int'?
10 | intb=0,baza=2,i,put;
| ^~~~
| int
main.cpp:10:11: error: 'baza' was not declared in this scope
10 | intb=0,baza=2,i,put;
| ^~~~
main.cpp:10:18: error: 'i' was not declared in this scope
10 | intb=0,baza=2,i,put;
| ^
main.cpp:10:20: error: 'put' was not declared in this scope; did you mean 'putw'?
10 | intb=0,baza=2,i,put;
| ^~~
| putw
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:17:29: error: 'b' was not declared in this scope
17 | cif[b]=(int(m[i])-48);
| ^
main.cpp:21:45: error: 'b' was not declared in this scope
21 | cif[b]=(int(m[i])-55);
| ^
main.cpp:26:10: error: 'y' was not declared in this scope
26 | while(y<n)
| ^
main.cpp:30:27: error: 'b' was not declared in this scope
30 | for(int i=0;i<b;i++){
| ^
main.cpp: At global scope:
main.cpp:36:1: error: expected declaration before '}' token
36 | }
| ^
main.cpp: In function 'int main()':
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);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~