编译参数-O2 -Wall -Wextra -pedantic -std=c++20
-O2 -Wall -Wextra -pedantic -std=c++20
warning: ISO C++ forbids compound-literals [-Wpedantic] while(m--)scanf("%d%d%d%lf",&opt,&u,&v,&t),e.emplace_back((line){opt,u,v,t});
然后显示了这样的编译警告 怎么解决这种警告 不要说什么去掉-pedantic
-pedantic