Submission #16830

# Submission time Handle Problem Language Result Execution time Memory
16830 2015-10-05T03:25:44 Z nona1314 뚊 (kriii3_EE) C++
Compilation error
0 ms 0 KB
#include <iostream>
#include <string>
#include <vector>

using namespace std;

int main(){
	int n,m;
	cin>>n>>m;
	vector<string> ehfeha;
	for(int i=0;i<n;i++){
		string s,ss;
		cin>>s;
		for(char &x : s){
			ss.push_back(x);
			ss.push_back(x);
		}
		ehfeha.push_back(ss);
	}
	for(int i=0;i<n;i++){
		string s;
		cin>>s;
		if(ehfeha[i] != s){
			printf("Not ");
			break;
		}
	}
	puts("Eyfa");
	return 0;
}

Compilation message

ee.cpp: In function ‘int main()’:
ee.cpp:14:17: error: range-based ‘for’ loops are not allowed in C++98 mode
   for(char &x : s){
                 ^
ee.cpp:24:17: error: ‘printf’ was not declared in this scope
    printf("Not ");
                 ^
ee.cpp:28:13: error: ‘puts’ was not declared in this scope
  puts("Eyfa");
             ^