Borderou de evaluare (job #693376)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Skyline (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 5 feb. 2023 14:31:43 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:52:14: error: expected '}' at end of input
52 | return 0;
| ^
main.cpp:7:1: note: to match this '{'
7 | {
| ^
main.cpp:8:15: warning: unused variable 'nr' [-Wunused-variable]
8 | int n,i,k,nr,l,lsky;
| ^~
main.cpp:8:18: warning: unused variable 'l' [-Wunused-variable]
8 | int n,i,k,nr,l,lsky;
| ^
main.cpp:8:20: warning: unused variable 'lsky' [-Wunused-variable]
8 | int n,i,k,nr,l,lsky;
| ^~~~
main.cpp:12:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | fscanf(fin,"%d",&n);
| ~~~~~~^~~~~~~~~~~~~
main.cpp:14:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | fscanf(fin,"%d%d",&v[i], &w[i]);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~