제출 #674500

#제출 시각아이디문제언어결과실행 시간메모리
674500Farhan_HYKaučuk (COCI21_kaucuk)C++14
50 / 50
1 ms328 KiB
#include <bits/stdc++.h> #define int long long #define float double #define pb push_back #define F first #define T int t; cin >> t; while(t--) #define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); using namespace std; /// Benzema is the best player in the world main() { IOS int x = 0, y = 0, z = 0; T { string s, ss; cin >> s >> ss; if (s == "section") x++, y = 0, z = 0; else if (s == "subsection") y++, z = 0; else { z++; if (y == 0) y++; } cout << x; if (y) cout << '.' << y; if (z) cout << '.' << z; cout << ' ' << ss << '\n'; } } ///use scanf

컴파일 시 표준 에러 (stderr) 메시지

Main.cpp:12:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   12 | main() {
      | ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...