Borderou de evaluare (job #676075)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Bac (clasele 6/7) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 15 nov. 2022 21:33:56 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:74:1: error: a function-definition is not allowed here before '{' token
74 | {
| ^
main.cpp:79:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
79 | int main()
| ^~
main.cpp:79:9: note: remove parentheses to default-initialize a variable
79 | int main()
| ^~
| --
main.cpp:79:9: note: or replace parentheses with braces to value-initialize a variable
main.cpp:80:1: error: a function-definition is not allowed here before '{' token
80 | {
| ^
main.cpp:118:25: error: expected '}' at end of input
118 | sort(v+1,v+j+1,cmp);
| ^
main.cpp:21:1: note: to match this '{'
21 | {
| ^
main.cpp:70:10: warning: unused variable 'v' [-Wunused-variable]
70 | interval v[31005];
| ^
main.cpp:71:5: warning: unused variable 'j' [-Wunused-variable]
71 | int j=0,l=0,n=0,m=0,i=0,ora=0,minu=0,k=0,nr,Y1=0,X1,X,Y;
| ^
main.cpp:71:9: warning: unused variable 'l' [-Wunused-variable]
71 | int j=0,l=0,n=0,m=0,i=0,ora=0,minu=0,k=0,nr,Y1=0,X1,X,Y;
| ^
main.cpp:71:13: warning: unused variable 'n' [-Wunused-variable]
71 | int j=0,l=0,n=0,m=0,i=0,ora=0,minu=0,k=0,nr,Y1=0,X1,X,Y;
| ^
main.cpp:71:17: warning: unused variable 'm' [-Wunused-variable]
71 | int j=0,l=0,n=0,m=0,i=0,ora=0,minu=0,k=0,nr,Y1=0,X1,X,Y;
| ^
main.cpp:71:21: warning: unused variable 'i' [-Wunused-variable]
71 | int j=0,l=0,n=0,m=0,i=0,ora=0,minu=0,k=0,nr,Y1=0,X1,X,Y;
| ^
main.cpp:71:25: warning: unused variable 'ora' [-Wunused-variable]
71 | int j=0,l=0,n=0,m=0,i=0,ora=0,minu=0,k=0,nr,Y1=0,X1,X,Y;
| ^~~
main.cpp:71:31: warning: unused variable 'minu' [-Wunused-variable]
71 | int j=0,l=0,n=0,m=0,i=0,ora=0,minu=0,k=0,nr,Y1=0,X1,X,Y;
| ^~~~
main.cpp:71:38: warning: unused variable 'k' [-Wunused-variable]
71 | int j=0,l=0,n=0,m=0,i=0,ora=0,minu=0,k=0,nr,Y1=0,X1,X,Y;
| ^
main.cpp:71:42: warning: unused variable 'nr' [-Wunused-variable]
71 | int j=0,l=0,n=0,m=0,i=0,ora=0,minu=0,k=0,nr,Y1=0,X1,X,Y;