실행 실패 (제출 코드 컴파일 에러)
Main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 1 | #import<iostream> | ^~~~~~ Main.cpp:2:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 2 | main(){std::string a,b;float c,d,e;while(std::cin>>a>>c>>b)b!="P"?d+=c(b!="F"?(69-b[0])+(b[1]==43)*.5:0),e+=c:0;printf("%f",d/e);} | ^~~~ Main.cpp: In function ‘int main()’: Main.cpp:2:71: error: ‘c’ cannot be used as a function 2 | main(){std::string a,b;float c,d,e;while(std::cin>>a>>c>>b)b!="P"?d+=c(b!="F"?(69-b[0])+(b[1]==43)*.5:0),e+=c:0;printf("%f",d/e);} | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.